📜  for循环python代码示例中的多个变量

📅  最后修改于: 2022-03-11 14:45:40.680000             🧑  作者: Mango

代码示例3
# i gets added to the end of the var name
i = 1
for n in range(5):
    globals()["w" + str(i)] = ###Do what you want here
    i += 1