draak

导航

2020年3月15日 #

turtle库的学习笔记(python)

摘要: 阅读全文

posted @ 2020-03-15 13:17 c-pig 阅读(1848) 评论(0) 推荐(0) 编辑

叠加等边三角形绘制

摘要: import turtle as t t.setup(650,500,250,250) t.penup() t.fd(150) t.pendown() t.pensize(15) t.color("purple") t.fd(100) t.seth(-120) t.fd(100) t.seth(12 阅读全文

posted @ 2020-03-15 11:10 c-pig 阅读(137) 评论(0) 推荐(0) 编辑

六角形的绘制

摘要: #Drawing of Hexagon import turtle as t t.pensize(2) t.pencolor("red") t.rt(30) t.fd(200) t.rt(120) t.fd(300) t.rt(120) t.fd(300) t.rt(120) t.fd(100) t 阅读全文

posted @ 2020-03-15 11:07 c-pig 阅读(566) 评论(0) 推荐(0) 编辑

红色五角星绘制

摘要: import turtle as t t.color("black","red") t.begin_fill() for i in range(5): t.fd(100) t.rt(144) t.end_fill() t.done 阅读全文

posted @ 2020-03-15 11:02 c-pig 阅读(289) 评论(0) 推荐(0) 编辑