种子获取
random.getstate()为什么我计算机出来要报错
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
x = random.getstate()
NameError: name 'random' is not defined 本帖最后由 xiaosi4081 于 2021-6-16 21:13 编辑
import random
...
random.getstate()
你是不是没有导入random库
xiaosi4081 发表于 2021-6-16 21:12
你是不是没有导入random库
这个获取的是什么 痴漫 发表于 2021-6-16 21:25
这个获取的是什么
https://www.jc2182.com/python/python-random-getstate-method.html
页:
[1]