发布时间:2019-09-22 07:45:18编辑:auto阅读(4280)
#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格式文件
54708
41481
36074
31552
26450
26155
24677
20267
16228
15647
2684°
2433°
2538°
2673°
2626°
2851°
2769°
2612°
2638°
2613°