# pysnake **Repository Path**: CodingNinja/pysnake ## Basic Information - **Project Name**: pysnake - **Description**: 200 行 Python 代码实现简易控制台 贪食蛇 游戏! - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: https://gitee.com/CodingNinja/pysnake - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-04-05 - **Last Updated**: 2022-06-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # pysnake 200 行 _Python_ 代码实现简易控制台 **_贪食蛇_** 游戏! ![pysnake](https://gitee.com/uploads/images/2018/0405/231803_ab69f0f6_1417905.png "pysnake.png") ## 关于 ImportError: No module named _curses **原因** :Windows 平台不支持 [curses](https://en.wikipedia.org/wiki/Curses_(programming_library)) 库 **解决方案** :使用 unofficial curses(非官方 curses 库)来代替 Python 自带的 [curses](https://docs.python.org/3.6/library/curses.html) 库。 1. 下载 whl 包。传送门:[非官方 curses](https://www.lfd.uci.edu/~gohlke/pythonlibs/#curses) - 选择对应版本,例如: _curses‑2.2‑cp36‑cp36m‑win_amd64.whl_ 表示适用于 Windows(64位) + Python3.6 环境的 curses2.2 版本 2. 在 whl 包目录下运行命令行。 **_> pip install <对应包名>.whl_** 3. 如果还不成功,尝试安装 wheel。 **_> pip install wheel_**