import random import numpy as np random_array = np.random.rand(3) # 生成长度为 3 的数组 print(random_array/1000)