发布时间:2019-09-22 07:45:18编辑:auto阅读(4123)
#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格式文件
53684
40521
34938
30662
25531
25305
23752
19211
15326
14828
1363°
1260°
1353°
1383°
1404°
1582°
1533°
1450°
1549°
1502°