解决三元运算符 报错“SyntaxError: can''t assign to conditional expression”