python if else单行 a = [1,2,3] b = a if len(a) != 0 else "" b = [1,2,3]#结果 a = [] b = a if len(a) != 0 else "" b = ""#结果