摘要: import turtle as tt.penup()t.fd(-100)t.pendown()t.pensize(5)t.color("lightpink")t.seth(-60)t.fd(200)t.seth(60)t.fd(200)t.seth(-180)t.fd(200)t.seth(60) 阅读全文
posted @ 2020-09-15 21:00 Elaine-- 阅读(307) 评论(0) 推荐(0)
摘要: #绘制六角形import turtle as tt.penup()t.fd(-80)t.pendown()t.seth(90)for i in range(6): t.left(60) t.fd(100) t.right(120) t.fd(100)t.fd(100)for i in range(5 阅读全文
posted @ 2020-09-15 20:56 Elaine-- 阅读(361) 评论(0) 推荐(0)
摘要: #五角星绘制import turtle as tt.setup(500,500,200,200)t.penup()t.fd(-150)t.pendown()t.fillcolor("red")t.begin_fill()for i in range(5): t.fd(300) t.right(180 阅读全文
posted @ 2020-09-15 20:40 Elaine-- 阅读(207) 评论(0) 推荐(0)