发布时间:2019-09-22 07:45:18编辑:auto阅读(4038)
#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格式文件
53158
40079
34451
30198
25103
24898
23291
16786
14904
14409
766°
702°
769°
780°
825°
958°
931°
950°
1048°
958°