摘要: 一、绘制五角星 import turtle turtle.seth(180) turtle.penup() turtle.fd(65) turtle.pendown() turtle.seth(0) turtle.fillcolor("red") turtle.begin_fill() turtle 阅读全文
posted @ 2020-03-11 16:23 邓若言 阅读(589) 评论(0) 推荐(0) 编辑
摘要: import turtle for i in range(3): turtle.fd(200) turtle.left(120) turtle.penup() turtle.fd(100) turtle.pendown() turtle.left(60) turtle.fd(100) for i i 阅读全文
posted @ 2020-03-11 16:13 邓若言 阅读(210) 评论(0) 推荐(0) 编辑
摘要: import turtle def drawTriangle(): for i in range(3): turtle.fd(60) turtle.left(120) for i in range(6): drawTriangle() turtle.penup() turtle.fd(60) tur 阅读全文
posted @ 2020-03-11 16:11 邓若言 阅读(531) 评论(0) 推荐(0) 编辑
摘要: 绘制五角星 import turtle turtle.seth(180) turtle.penup() turtle.fd(65) turtle.pendown() turtle.seth(0) turtle.fillcolor("red") turtle.begin_fill() turtle.f 阅读全文
posted @ 2020-03-11 16:05 邓若言 阅读(148) 评论(0) 推荐(0) 编辑