摘要: 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-10-19 19:40 唯闻卿卿 阅读(125) 评论(0) 推荐(0) 编辑
摘要: import turtle as t t.setup(650,350,200,200) #窗口大小及左上角位置 t.seth(30) #画笔起始方向 t.pencolor('red') #将画笔的颜色变为红色 for i in range(6): t.fd(30) t.left(120) t.fd( 阅读全文
posted @ 2020-10-19 19:37 唯闻卿卿 阅读(131) 评论(0) 推荐(0) 编辑
摘要: from turtle import * fillcolor("red") begin_fill() while True: forward(200) right(144) if abs(pos())<1: break end_fill() 阅读全文
posted @ 2020-10-19 19:34 唯闻卿卿 阅读(55) 评论(0) 推荐(0) 编辑