import random y = [] # 将y初始化为列表 for i in range(10): x=random.randint(0, 101) print(x) y.append(x) # x是点个数,将x加入到列表y中 print(y)
你这个是从0,101之间选择一个数啊