📜  检查变量是否在python代码示例中定义

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

代码示例1
try: x
except NameError: some_fallback_operation(  )
else: some_operation(x)