tmpName = ''
if tmpName:
print tmpName
#没有输出
if tmpName is not None:
print tmpName
#有输出,是空行
python中 if XXX is not None:
最新推荐文章于 2024-06-04 15:07:16 发布
tmpName = ''
if tmpName:
print tmpName
#没有输出
if tmpName is not None:
print tmpName
#有输出,是空行