摘要: import turtle turtle.fillcolor("red") turtle.begin_fill() count = 1 while count <= 5: turtle.forward(100) turtle.right(144) count += 1 turtle.end_fill 阅读全文
posted @ 2020-09-15 22:44 月亮上的垂耳喵 阅读(482) 评论(0) 推荐(0)
摘要: import turtle as t t.pencolor("blue") #笔触为蓝色 #绘制外部大三角形 t.fd(200) t.seth(120) t.fd(200) t.seth(-120) t.fd(200) #绘制内部小三角形 t.seth(0) t.fd(100) t.seth(60) 阅读全文
posted @ 2020-09-15 22:39 月亮上的垂耳喵 阅读(2190) 评论(0) 推荐(0)
摘要: 1 import turtle as t 2 t.pensize(2) 3 t.pencolor("red") 4 t.rt(30) 5 t.fd(200) 6 t.rt(120) 7 t.fd(300) 8 t.rt(120) 9 t.fd(300) 10 t.rt(120) 11 t.fd(10 阅读全文
posted @ 2020-09-15 22:26 月亮上的垂耳喵 阅读(1003) 评论(0) 推荐(0)