Creating Variable at runtime in python

前端 未结 0 1996
滥情空心
滥情空心 2020-12-02 11:13

Just out of curiosity it is possible to create a variable name in runtime in python. Similar to

for i in range(5):
    varname_+str(i) = i*4

相关标签:
回答
  • 消灭零回复
提交回复
热议问题