python 判断字符串是否为空用什么方法?

s=' '
if s.strip()=='':
    print 's is null'
或者
if not s.strip():
    print 's is null'
原文地址:https://www.cnblogs.com/zhaoyingjie/p/6387057.html