栗子一 for i in range(5): print(random.randrange(20)) #### 17 4 7 7 4 ... 每次取元素都是不重複的,所以population 的長度必須≥ k,否則會報錯.
確定! 回上一頁