03 2020 档案
摘要:一、空间坐标 1、海龟方向 海龟的(初)前进方向:指向屏幕右方 (1)前进:turtle.fd(d) (2)后退:turtle.bk(d) 二、角度坐标 1、逆时针旋转角度:turtle.seth(angle) seth()改变海龟行进方向 (只改变方向但不行进) 2、向左旋转xx角度 :turtl
阅读全文
摘要:import turtle turtle.pencolor("red")turtle.begin_fill()turtle.left(60)turtle.forward(144) turtle.right(120)turtle.forward(288) turtle.right(120)turtle
阅读全文
摘要:import turtle turtle.pencolor("blue")turtle.begin_fill()turtle.left(30)turtle.forward(144) turtle.right(60)turtle.forward(144) turtle.right(60)turtle.
阅读全文
摘要:import turtle turtle.fillcolor("red") turtle.begin_fill() count = 1 while count <= 5: turtle.forward(100) turtle.right(144) count += 1 turtle.end_fill
阅读全文
浙公网安备 33010602011771号