发布时间:2019-09-22 07:45:18编辑:auto阅读(4341)
#encoding=utf-8
str=""
if str.strip()=="":
print("str is null")
if not str.strip():
print("str is null")

#encoding=utf-8
str="hello"
if str.strip()=="":
print("str is null")
if str.strip():
print("str is not null")
上一篇: Python断点调试方法
下一篇: Python--生成Wav格式文件
55214
42007
36584
31990
26913
26563
25099
20748
16625
16045
3297°
2979°
3059°
3214°
3153°
3429°
3319°
3153°
3148°
3129°