Python3tag使用

tag=False
if tag: #表示tag为True
print(1)
if not tag: #表示tag为False
print(2)
结果为:2
posted @ 2017-11-17 16:40  奋斗史  阅读(432)  评论(0)    收藏  举报