摘要: str1 = ""str2 = Nonestr3 = "hello"if str2: print "not null"else: print "null"这样,不仅可以判定字符串是否为空,还能判定是否为None 阅读全文
posted @ 2014-06-24 21:38 helloweworld 阅读(1922) 评论(0) 推荐(0) 编辑