我的代码:
import random
a = [0,0]
b = [0,0]
for i in range(2):
for j in range(2) :
data = random.randint(0,100)
a[i]=data
b[i] = a
print b
结果:
[[92, 53], 0]
[[39, 20], [39, 20]]
这不是我想要的结果,我期望的结果是:
[[92, 53], 0]
[[92, 53], [39, 20]]