本篇文章介紹Python 標準程式庫的random 模組。 ... 以下利用randint() 產生三個不同範圍的擬隨機數 from random import randint a = randint(1, 9) print(a) b ...
確定! 回上一頁