0
点赞
收藏
分享

微信扫一扫

Python如何将一个字符串变成变量

小美人鱼失去的腿 2022-03-10 阅读 154
python
#字符串变为变量
a="res"
globals()[a]=1
print(res)
举报

相关推荐

0 条评论