createVar = locals() for i in range(0,16): createVar['r' + str(i)] = i
本文标题:使用python创建动态变量名
本文链接:https://www.haomeiwen.com/subject/ueqyaftx.html
网友评论