python 判断字符串是否为空用什么方法?
摘要:
s=' ' if s.strip()=='': print 's is null' 或者 if not s.strip(): print 's is null' 阅读全文
posted @ 2017-02-10 16:47 星河赵 阅读(169562) 评论(0) 推荐(0) 编辑
posted @ 2017-02-10 16:47 星河赵 阅读(169562) 评论(0) 推荐(0) 编辑