发布时间:2019-09-22 07:45:18编辑:auto阅读(4215)
#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格式文件
54422
41188
35713
31270
26172
25890
24382
19923
15966
15411
2284°
2089°
2178°
2301°
2262°
2476°
2410°
2227°
2306°
2281°