n = random.randint(0, total-1) #隨機產生抽出彩球的位置. 16. print(lottery[n], end=" ") # 印出抽到的牌. 17. del lottery[n] #從彩球陣列刪掉抽到的球.
確定! 回上一頁