📜  布尔 python 对白痴的意义 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:08.609000             🧑  作者: Mango

代码示例1
Example:

my_boolean = 1
print(bool(my_boolean))

my_boolean = 0
print(bool(my_boolean))

my_boolean = 10
print(bool(my_boolean))