发布时间:2019-09-22 07:45:18编辑:auto阅读(3850)
#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格式文件
52190
52098
42266
39133
33636
30593
29271
24255
24144
22511
51°
73°
73°
72°
129°
305°
352°
343°
326°
368°