📜  is not none python 代码示例

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

代码示例2
result = value or "default" # result == "default" if value is any false value (0, [], '', ...)