Define 100 arrays, once one has been changed, the others will also be changed

后端 未结 0 1549
傲寒
傲寒 2020-11-21 14:36

Now I\'m ready to define many arrays, for example, 4, code as:

import numpy as np
a,b,c,d = 4*[np.arange(1,11)]
a[0] = 100000
print(a)
print(b)
相关标签:
回答
  • 消灭零回复
提交回复
热议问题