Python绘图实例8:心形绘制

论坛 期权论坛 编程之家     
选择匿名的用户   2021-5-16 20:51   11   0
# 心形绘制
import turtle as t
t.penup()
t.seth(-90)
t.fd(160)
t.pendown()
t.pensize(20)
t.colormode()
for j in range(10):
    t.speed(1000)
    t.pencolor("red")
    t.seth(130)
    t.fd(220)
    for i in range(23):
        t.circle(-80,10)
    t.seth(100)
    for i in range(23):
        t.circle(-80,10)
    t.fd(220)
    t.done()

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP