lannn_l

2020年9月15日

六角形的绘制

摘要: import turtle turtle.left(30) turtle.forward(144) turtle.right(60) turtle.forward(144) turtle.right(60) turtle.forward(144) turtle.right(60) turtle.fo 阅读全文

posted @ 2020-09-15 23:23 lannn_l 阅读(159) 评论(0) 推荐(0) 编辑

叠加等边三角形绘制

摘要: import turtle as t t.pencolor("black") t.fd(200) t.seth(120) t.fd(200) t.seth(-120) t.fd(200) t.seth(0) t.fd(100) t.seth(60) t.fd(100) t.seth(180) t.f 阅读全文

posted @ 2020-09-15 23:15 lannn_l 阅读(86) 评论(0) 推荐(0) 编辑

五角星

摘要: import turtle n = eval(input("请输入五角星的长度")) turtle.begin_fill() i = 0 while i < 5: turtle.forward(n) turtle.right(180-36) i += 1 turtle.color("red") tu 阅读全文

posted @ 2020-09-15 23:06 lannn_l 阅读(99) 评论(0) 推荐(0) 编辑

导航