标签: python list exec
用exec创建一些循环变量后,我不知道如何将它们放在列表中,见下文
for i in range(2): exec("x%i=i"%i) #Here I created the variables x0 and x1 y.append(??????) #I dont know how to put the above variables inside this list in the same loop print(y)