python实现海螺图片的方法示例
时间:2022-01-01 11:29:07|栏目:Python代码|点击: 次
本文介绍了如何用python实现海螺图片,感兴趣的可以参考一下,具体代码如下:

代码如下:
import turtle
import time
t = turtle.Turtle()
t.speed(0)
t.color('red','blue')
t.begin_fill()
for i in range(90):
t.circle(150 - i)
t.left(4)
t.end_fill()
t.up()
t.fd(280)
t.right(90)
t.fd(200)
t.down()
t.color('green')
for i in range(4):
t.circle(80)
for i in range(9):
t.circle(20)
t.left(40)
t.left(90)
time.sleep(16)
上一篇:使用Python标准库中的wave模块绘制乐谱的简单教程
栏 目:Python代码
下一篇:Python tkinter模块中类继承的三种方式分析
本文标题:python实现海螺图片的方法示例
本文地址:http://www.codeinn.net/misctech/188728.html






