Python 关键字 False
定义和用法
False关键字是一个布尔值和一个比较操作的结果。
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])
运行实例»
相关页面
True关键字。
在Python 运算符操作中阅读有关比较的更多信息。 