发布作者: ZHWEI
百度收录: 正在检测是否收录...
作品采用: 《 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 》许可协议授权
#turtle
#import + 库名
import turtle
a = turtle
#前进、后退
a.forward(100)
a.backward(100)
#上色
a.fillcolor("颜色(英文")
a.begin_fill()#开始填充
a.end_fill()#填上
#转
a.left(45)
a.right(180)
#抬笔 放笔
a.up()
a.down()
#隐藏 显示、判断
a.hideturtle()
a.showturtle()
a.isvisible()
#坐标
a.goto(x,y)
—— 评论区 ——