當a被設定後,每次使用random.seed(a)後調用random模組的方法生成的數就會是同一個。 ... 以下範例則是random.getstate()與setstate()的用法,.
確定! 回上一頁