发布时间:2019-09-22 07:45:18编辑:auto阅读(3666)
#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格式文件
51284
50736
41334
38144
32612
29514
28364
23233
23201
21526
1597°
2330°
1932°
1873°
2201°
1914°
2601°
4370°
4216°
2993°