发布时间:2019-09-22 07:45:18编辑:auto阅读(3680)
#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格式文件
51383
50859
41448
38235
32737
29637
28450
23360
23294
21625
1719°
2450°
2044°
1978°
2334°
2010°
2719°
4553°
4359°
3109°