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

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

2021-01-09 17:26 0 430 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM