![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
king_20200426
这个作者很懒,什么都没留下…
展开
-
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 评论 -
Python/Pycharm Traceback (most recent call last): OSError: [Errno 22] Invalid argument 解决办法
使用Python或Pycharm打开指定文本文件时遇到错误如下图:1、执行代码如下2、错误代码与截图如下Traceback (most recent call last): File "D:/Python/test/hello.py", line 1, in <module> file = open("D:\\Python\test\TEST")OSError: [Errno 22] Invalid argument: 'D:\\Python\test\\TEST'...原创 2020-07-06 23:56:29 · 18856 阅读 · 2 评论