随机取值 imort random index=random.sample(range(0,40),5) import numpy as np index=np.random.randint(0,40,size=5)