Python/ref keyword false
来自菜鸟教程
<languages />
Python错误关键字
例
打印比较结果“ 5大于6”:
print(5 > 6)
定义和用法
The
False
keyword是布尔值,是比较操作的结果。
The
False
关键字与0相同(
True
与1)相同。
更多例子
例
其他返回False的比较:
print(5 > 6)
print(4 in [1,2,3])
print("hello" is "goodbye")
print(5 == 6)
print(5 == 6 or 6 == 7)
print(5 == 6 and 6
== 7)
print("hello" is not "hello")
print(not(5 == 5))
print(3 not in [1,2,3])
相关页面
The
True
关键词。
阅读更多关于比较的信息 Python运算符教程
.