python如何画奥运五环
发布时间:2021-05-22 编辑:jiaochengji.com
教程集为您提供python如何画奥运五环等资源,欢迎您收藏本站,我们将为您提供最新的python如何画奥运五环资源
绘制奥运五环主要涉及到Python中的turtle绘图库运用:
相关推荐:《Python教程》
程序源代码为:
import turtle turtle.width(10) turtle.color('black') turtle.circle(50) turtle.penup() turtle.goto(120,0) turtle.pendown() turtle.color('red') turtle.circle(50) turtle.penup() turtle.goto(240,0) turtle.pendown() turtle.color('blue') turtle.circle(50) turtle.penup() turtle.goto(60,-50) turtle.pendown() turtle.color('yellow') turtle.circle(50) turtle.penup() turtle.goto(180,-50) turtle.pendown() turtle.color('pink') turtle.circle(50) #Python绘制奥运五环
运行后,结果为:
您可能感兴趣的文章:
python如何画奥运五环
如何使用python3输出图形?
如何用python画图
奥运流量包使用时间有多久 奥运流量包用不了解决方法
Illustrator创建一个写实奥利奥绘制教程
JavaScript基于时间的动画算法
如何用Python画心
怎么用python实现画爱心
python turtle有什么用
Python的列表是什么
上一篇:python file怎么打开
下一篇:python distribute是什么
[关闭]