- 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!
推薦閱讀
- 演進(jìn)式架構(gòu)(原書(shū)第2版)
- Spring 5企業(yè)級(jí)開(kāi)發(fā)實(shí)戰(zhàn)
- 樂(lè)學(xué)Web編程:網(wǎng)站制作不神秘
- 微服務(wù)設(shè)計(jì)原理與架構(gòu)
- TypeScript圖形渲染實(shí)戰(zhàn):基于WebGL的3D架構(gòu)與實(shí)現(xiàn)
- 算法訓(xùn)練營(yíng):提高篇(全彩版)
- Mastering Drupal 8 Views
- C語(yǔ)言課程設(shè)計(jì)
- 機(jī)器學(xué)習(xí)微積分一本通(Python版)
- 深入實(shí)踐Kotlin元編程
- Mastering Apache Storm
- C編程技巧:117個(gè)問(wèn)題解決方案示例
- 軟件測(cè)試分析與實(shí)踐
- Java高手是怎樣煉成的:原理、方法與實(shí)踐
- HTML5+CSS3+jQuery Mobile+Bootstrap開(kāi)發(fā)APP從入門到精通(視頻教學(xué)版)