收起
import random y = [] # 将y初始化为列表 for i in range(10): x=random.randint(0, 101) print(x) y.append(x) # x是点个数,将x加入到列表y中 print(y)
报告相同问题?