pythonturtle绘图教程自学_turtle教程-Python绘图

运动命令:

forward(degree) #向前移动距离degree代表距离

backward(degree) #向后移动距离degree代表距离

right(degree) #向右移动多少度

left(degree) #向左移动多少度

goto(x,y) #将画笔移动到坐标为x,y的位置

stamp() #复制当前图形

speed(speed) #画笔绘制的速度范围[0,10]整数

down() #移动时绘制图形,缺省时也为绘制

up() #移动时不绘制图形

pensize(width) #绘制图形时的宽度

color(colorstring) #绘制图形时的颜色

fillcolor(colorstring) #绘制图形的填充颜色

fill(Ture)

fill(false)

第1次更新 2017-8-10 11:17:34 来源 http://www.jb51.net/article/52659.htm

你可能感兴趣的:(pythonturtle绘图教程自学_turtle教程-Python绘图)