📜  如何检查 var 是否存在 python - TypeScript 代码示例
📅  最后修改于: 2022-03-11 14:48:37.691000             🧑  作者: Mango
代码示例2
# for local
if 'myVar' in locals():
# myVar exists.
# for globals
if 'myVar' in globals():
# myVar exists.