📜  如何在循环中创建多个变量 python 代码示例

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

代码示例1
# 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