我有一个脚本,在2到12之间生成10个随机数: repetition = 10 while repetition > 0: print(random.randint(2,12)) repetition = repetition - 1.
確定! 回上一頁