问题描述
IDLE error:
Traceback (most recent call last):
File "D:\Snake\snake.py",line 4,in <module>
s = curses.initscr()
File "C:\Python\python38-32\lib\curses__init.py",line 30,in initscr
fd=_sys.stdout__.fileno())
AttributeError: 'nonetype' object has no attribute 'fileno'
它在Win10和Win7中。 Windows-curses模块通过pip安装。在教室中的9台计算机中,有1台可以正常工作,而在其他8台计算机上,在IDLE中运行时会显示此错误。 另外,当我通过双击程序图标玩游戏时,它开始运行,并且在吃了2种食物后,屏幕上不再显示食物。有人可以帮忙吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)