报错信息:AttributeError: 'builtin_function_or_method' object has no attribute 'random' 引入模块是这样的 from random import random 改为: import random