摘要:
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-14 20:09
Zhhou
阅读(39)
评论(0)
推荐(0)
摘要:
import turtle as t t.setup(650,350,200,200) t.pu() t.fd(50) t.left(-90) t.fd(100) t.right(90) t.pd() t.pensize(5) t.pencolor("black") for i in range ( 阅读全文
posted @ 2020-09-14 20:04
Zhhou
阅读(197)
评论(0)
推荐(0)
摘要:
import turtle as t t.fillcolor("red")#颜色填充函数 t.begin_fill() while Ture: t.foward(200) t.right(144) if abs(t.pos())<1:#看画笔是否回到原点,回到原点为真 break t.end_fil 阅读全文
posted @ 2020-09-14 19:50
Zhhou
阅读(63)
评论(0)
推荐(0)

浙公网安备 33010602011771号