发布时间:2019-09-22 07:45:18编辑:auto阅读(3464)
#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格式文件
48852
47912
38698
35851
30276
27025
26060
20894
20689
19058
492°
579°
597°
603°
579°
566°
627°
698°
821°
915°