Python使用Pycharm开发飞机大战:AttributeError: partially initialized module ‘pygame‘ has no attribute ‘init‘
Python用Pycharm开发飞机大战初始化时遇到错误提示:AttributeError: partially initialized module 'pygame' has no attribute 'init' (most likely due to a circular import)首先确认Python确认下Pygame已安装成功,使用CMD输入python确认已安装成功;对于上面的错误,找了一些原因匀未解决,最后发现是文件命名为pygame了,而pygame是模块名称是否重复造成
原创
2020-07-08 08:54:36 ·
4805 阅读 ·
6 评论