官术网_书友最值得收藏!

Installing PyGame

PyGame usually comes installed with the latest Raspbian distribution, but if it isn't you can use the following command to install it:

sudo apt-get install python-pygame

Test your installation by opening a Python terminal by entering python in a regular terminal and pressing Enter. Now, execute the following command:

import pygame

Now that you have your system set up and you have hopefully checked out the PyGame website to explore its complete functionalities, we will move on to build the binary fractal tree to introduce you to the workings of PyGame. Let's begin!

主站蜘蛛池模板: 绵竹市| 马山县| 米林县| 府谷县| 昌宁县| 芷江| 天柱县| 昭觉县| 洛隆县| 太保市| 桑日县| 沾化县| 东宁县| 宣汉县| 湖南省| 巢湖市| 皮山县| 黄平县| 喀喇| 宜君县| 石棉县| 上犹县| 临清市| 邓州市| 浦城县| 鱼台县| 江川县| 延边| 盐亭县| 神农架林区| 益阳市| 永安市| 保德县| 柞水县| 邳州市| 阿瓦提县| 乌审旗| 玉环县| 宝山区| 沙坪坝区| 凤城市|