我想检查变量是否存在.现在我正在做这样的事情:
try: myVar except NameError: # Do something.
还有其他方法没有例外吗?
python variables exception
exception ×1
python ×1
variables ×1