阅读背景:

python判断字符串是否为空

来源:互联网 


#encoding=utf-8
str=""
if str.strip()=="":
    print("str is null")
if not str.strip():
    print("str is null")
#encoding=utf-8
str=""
if str.strip()==""



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: