如何用Python写一个贪吃蛇游戏
贪吃蛇游戏是一款经典的游戏,它的玩法简单、易上手,深受大众喜爱。在这篇文章中,我们将使用Python编写一个简单的贪吃蛇游戏,并通过代码分析来理解游戏的实现原理。 准备工作在开始编写代码之前,我们需要安装Pygame模块,它是一款用于开发2D游戏的Python模块。可以通过以下命令安装: 1pip install pygame 同时,我们还需要准备...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you ca...
MAC M1安装多个JDK版本及动态切换
JDK版本下载 下载地址:https://www.azul.com/downloads/?package=jdk筛选一下macOS的ARM 64-bit架构的JDK版本,下载对应版本即可。最好直接下载.dmg格式,最方便安装。 下载完毕之后直接双击运行按照操作一步步走,直到安装完毕。 打开 访达 ,shift+command+g跳转到/L...