您需要 登录 才可以下载或查看,没有账号?立即注册
x = random.getstate() >>> print(x) >>> random.randint(1,10) 6 >>> random.randint(1,10) 6 >>> random.randint(1,10) 10 >>> random.randint(1,10) 1 >>> random.randint(1,10) 4 >>> random.randint(1,10) 2 >>> random.randint(1,10) 5 >>> random.setstate(x) >>> random.randint(1,10) 6 >>> random.randint(1,10) 6 >>> random.randint(1,10) 10 >>> random.randint(1,10) 1 >>> random.randint(1,10) 4
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)
GMT+8, 2025-1-11 00:19
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.