#方法一 if oneString: print "not empty" else: print "empty" #方法二 if oneString == "": print "empty" else: print "not empty"