qiuyouzhi 发表于 2020-3-26 09:56:35

Python not 语句

Python not 语句

语法:

not sth

实例:

>>> not True
False
>>> not False
True
>>> # 取反
>>> not 1
False
>>> not 0
True
>>> a = 5
>>> not a
False
>>> not -1
False

WangJS 发表于 2020-3-26 18:45:13

来抢个沙发{:10_256:}(这应该不算灌水吧)
页: [1]
查看完整版本: Python not 语句