在0-100中 随机取20个数字

import random  #在0-100中 随机取20个数字
a = [random.randint(0, 100) for i in range(20)]
print(a)
weight_list_earth = [float(weight) + w*0.5 for w in range(10) ]
weight_list_moon = [w * 0.165 for w in weight_list_earth ]

猜你喜欢

转载自blog.csdn.net/li_xp123/article/details/92379463