发布时间:2019-09-22 07:45:18编辑:auto阅读(3719)
#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格式文件
51617
51222
41706
38469
32953
29951
28639
23611
23542
21892
2063°
2767°
2309°
2245°
2737°
2266°
3030°
4971°
4833°
3442°