r2.append(random.randint(1, 10)). 这个是2组50个,范围1-10,你指定的范围后面没显示出来。 如果你要的是没有重复的: import random r1 = random.sample(range(1, ...
確定! 回上一頁