Pygame AttributeError: 'module' 对象没有属性 'copy' [英] Pygame AttributeError: 'module' object has no attribute 'copy'

查看:36
本文介绍了Pygame AttributeError: 'module' 对象没有属性 'copy'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行 pygame 程序时遇到 Error: 'module' object has no attribute 'copy'.在我的代码中,我从来没有提到复制属性,所以我不明白错误是从哪里来的.

I encountered Error: 'module' object has no attribute 'copy' while running a pygame program. In my code, I never referred to a copy attribute, so I don't understand where the error is coming from.

推荐答案

我认为您的目录中有一个名为copy"的 python 文件.我遇到了同样的问题,删除复制"文件后,错误消失了.

I think there is a python file named "copy" in your directory. I had the same problem, after I delete the "copy" file, the error has gone.

这篇关于Pygame AttributeError: 'module' 对象没有属性 'copy'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆