#字符串变为变量
a="res"
globals()[a]=1
print(res)
Python如何将一个字符串变成变量
最新推荐文章于 2024-05-03 11:07:56 发布
#字符串变为变量
a="res"
globals()[a]=1
print(res)