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

  • Raspberry Pi By Example
  • Ashwin Pajankar Arush Kakkar
  • 95字
  • 2021-07-16 11:24:19

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!

主站蜘蛛池模板: 乐亭县| 重庆市| 京山县| 嘉荫县| 霍邱县| 巴彦淖尔市| 安吉县| 澄迈县| 马尔康县| 崇左市| 汶川县| 瑞金市| 保山市| 高邮市| 龙南县| 湟中县| 乐都县| 景洪市| 天长市| 九龙县| 山阴县| 镇平县| 潮州市| 汶上县| 宜兰县| 莱西市| 汪清县| 西林县| 离岛区| 工布江达县| 邳州市| 桐柏县| 色达县| 泾阳县| 舒兰市| 辛集市| 灌南县| 乐安县| 凤山市| 南川市| 康马县|