s=‘ ‘ if s.strip()==‘‘: print ‘s is null‘ 或者 if not s.strip(): print ‘s is null‘
python 判断字符串是否为空用什么方法?
原文:http://www.cnblogs.com/zhaoyingjie/p/6387057.html