📜  python nullish 合并运算符 - Python 代码示例

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

代码示例1
#use "or"

42    or "something"    # returns 42
0     or "something"    # returns "something"
None  or "something"    # returns "something"
False or "something"    # returns "something"
""    or "something"    # returns "something"