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 ]
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 ]