摘要:
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) t.fd(100) t.seth(180) t.fd 阅读全文
posted @ 2020-09-14 21:20
sxt。
阅读(129)
评论(0)
推荐(0)
摘要:
import turtle as t t.setup(650,350,200,200) #窗口大小及左上角位置 t.seth(30) #画笔起始方向 for i in range(6): t.fd(30) #六角形边长30 t.left(120) t.fd(30) t.left(120) t.fd( 阅读全文
posted @ 2020-09-14 21:08
sxt。
阅读(254)
评论(0)
推荐(0)
摘要:
import turtle as t t.fillcolor("red") #颜色填充函数 t.begin_fill() while True: t.forward(200) t.right(144) if abs(t.pos()) < 1:#看画笔是否回到原点,回到原点为真 break t.end 阅读全文
posted @ 2020-09-14 20:04
sxt。
阅读(63)
评论(0)
推荐(0)

浙公网安备 33010602011771号