发布时间:2019-09-22 07:45:18编辑:auto阅读(3957)
#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格式文件
52702
39702
34080
29828
24729
24563
22939
16316
14601
14108
312°
316°
386°
382°
423°
555°
532°
557°
636°
561°