标签:bubuko import div fill end on() com begin turtle
import turtle turtle.bgcolor(‘red‘) turtle.color(‘yellow‘) turtle.fillcolor(‘yellow‘) turtle.begin_fill() for i in range(5): turtle.forward(100) turtle.right(144)
import turtle turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turtle.done()
import turtle turtle.pencolor(‘purple‘) turtle.fillcolor(‘pink‘) turtle.begin_fill() while True: turtle.forward(100) turtle.right(67) if abs(turtle.position())<5: break turtle.end_fill() turtle.done()
标签:bubuko import div fill end on() com begin turtle
原文地址:https://www.cnblogs.com/12j-x/p/9016758.html