try:
var_name
except NameError:
var_name = initialize
python判断变量名是否存在
猜你喜欢
转载自blog.csdn.net/dlhlSC/article/details/86687398
今日推荐
周排行