![058e7015e29e85382d596e33f41f022a.gif](https://img-blog.csdnimg.cn/img_convert/058e7015e29e85382d596e33f41f022a.gif)
![7a7367e79350b68b9ed51a323a57e012.png](https://img-blog.csdnimg.cn/img_convert/7a7367e79350b68b9ed51a323a57e012.png)
一、Python之turtle画--《神奇宝贝》中神奇宝贝球
![fe4b2b531e05ba4e26e1a28130a66b08.png](https://img-blog.csdnimg.cn/img_convert/fe4b2b531e05ba4e26e1a28130a66b08.png)
相信很多80、90后小时候都看过《神奇宝贝》,童年的记忆一下子涌上,小智的“出来吧!皮卡丘”还有“可爱又迷人的反派角色”依然历历在目,
佩服漫画家天马行空的想象力,给童年的生活增添一抹彩虹般的色彩。
今天用python画一画“神奇宝贝球”,纪念童年的美好!
![d5fcd50eb43e49b4dbd9e49c2518630f.png](https://img-blog.csdnimg.cn/img_convert/d5fcd50eb43e49b4dbd9e49c2518630f.png)
二、Python之turtle画--神奇宝贝球分析
●主要使用turtle.circle(r,angle)绘制半圆或者整圆
●turtle.pensize(d)改变画笔大小
●最常用移动画笔组合
turtle.penup()+turtle.goto(x,y)+turtle.seth(angle)+ turtle.pendown()
●色彩填充组合
turtle.begin_fill()+turtle.end_fill()
三、 Python之turtle画--神奇宝贝球方案
●Python代码:
![f5b4cf00226b98bb8f4e15602f05573b.png](https://img-blog.csdnimg.cn/img_convert/f5b4cf00226b98bb8f4e15602f05573b.png)
![117bab7f3df5e41568ce616fae8aa6db.png](https://img-blog.csdnimg.cn/img_convert/117bab7f3df5e41568ce616fae8aa6db.png)
●Python效果动态图:
![08fc24ef096dcea13ad76cd892973a3f.gif](https://img-blog.csdnimg.cn/img_convert/08fc24ef096dcea13ad76cd892973a3f.gif)
四、上一画
>>>《Python之turtle画018--国庆节到了,12306又双叒叕没抢到票》
![72b869a2d14602e061b74b7214131e6c.gif](https://img-blog.csdnimg.cn/img_convert/72b869a2d14602e061b74b7214131e6c.gif)
![069d2613257a4d88560515eb1b6a37c6.png](https://img-blog.csdnimg.cn/img_convert/069d2613257a4d88560515eb1b6a37c6.png)