阅读背景:

【Python】如何判断一个字符串为空

来源:互联网 
#方法一
if oneString:
	print "not empty"
else:
	print "empty"

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



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: