发布时间:2019-09-08 09:11:16编辑:auto阅读(1882)
a = [1,2,3]
b = a if len(a) != 0 else ""
b = [1,2,3]#结果
a = []
b = a if len(a) != 0 else ""
b = ""#结果
上一篇: python获取当前目录路径和上级路径
下一篇: python图片转换pdf
47863
46425
37315
34761
29332
25991
24946
19967
19565
18051
5806°
6433°
5949°
5976°
7081°
5926°
5964°
6456°
6419°
7799°