pygame模块使用时出现AttributeError: module 'pygame' has no attribute 'init'错误解决方法

编程知识 更新时间:2023-05-02 21:18:13

pygame模块使用时出现AttributeError: module ‘pygame’ has no attribute '…'错误解决方法

首先在pygame中存在init()模块,出现这样的问题是你的python文件名起的不对,将文件名改过来即可。

注:检查文件名是否为pygame.py不可以跟pygame模块同名。

更多推荐

pygame模块使用时出现AttributeError: module 'pygame' has no attribute 'in

本文发布于:2023-04-28 17:27:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/bd0d5d436b3ab3123268d7b8dd76ea16.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:解决方法   模块   错误   AttributeError   pygame

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 109322文章数
  • 27734阅读数
  • 0评论数