Pygame Installation--编号201605

最近培训小朋友学编程,首先带入门的是MIT提供的scratch,尽量站在算法和数据结构的高度去引导学生。最近在思考接下来怎么去协助小朋友扩展,思索良久,决定用Python帮助他们去进阶。最好的敲门砖就是游戏了,那么得好好备课下pygame。首先是Pygame的安装,这个比较简单,Pygame官网里直接给的介绍是:

Pygame requires Python; if you don't already have it, you can download it from python.orgUse python 3.6.1 or greater, because it is much friendlier to newbies, and additionally runs faster.

The best way to install pygame is with the pip tool (which is what python uses to install packages). Note, this comes with python in recent versions. We use the --user flag to tell it to install into the home directory, rather than globally.

python3 -m pip install -U pygame --user

安装的过程如下:

安装的结果如下:

 

To see if it works, run one of the included examples:

python3 -m pygame.examples.aliens

效果如下:

If it works, you are ready to go! 

 

激动人心的时刻快点来临吧。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值