📜  如果已定义 python - Python 代码示例

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

代码示例2
# None signifies undefined

if x is None:
    some_fallback_operation(  )
else:
    some_operation(x)