python random报错:AttributeError: module 'random' has no attribute 'randint'

该报错是由于文件命名原因,文件命名不能是python内置方法或者包名称,否则会报错:AttributeError: module 'random' has no attribute 'randint'

posted @ 2021-01-09 17:26  大王要我来巡山  阅读(2192)  评论(0)    收藏  举报