今天分享一个有趣的github项目:https://github.com/kingser/free-python-games,通过这个项目,我们只需要一行ofcodetoplay20多个小游戏都可以玩,下面我们来详细了解一下。安装首先,我们安装,安装非常简单,只需要一行命令:pipinstallfreegames。安装完成后,我们使用命令:python-mfreegameslist查看可玩游戏列表,如下图:看下面的具体例子一次。python-mfreegames.snakepython-mfreegames.pacmanpython-mfreegames.flappypython-mfreegames.connectpython-mfreegames.cannonpython-mfreegames.memorypython-mfreegames.pongpython-mfreegames.simonsayspython-mfreegames.tictactoepython-m免费游戏。tilespython-mfreegames.tronpython-mfreegames.lifepython-mfreegames.mazepython-mfreegames.fidget好了,这里就不一一列举了,有兴趣的朋友可以自行尝试。
