""" author:少校 create Time:2025/2/28 16:39 越努力越幸运 """ import turtle from random import randint turtle.setup(800, 700) turtle.colormode(255) turtle.width(3) # for x in range(36): # turtle.pencolor(randint(0, 255), randint(0, 255), randint(0, 255)) # turtle.forward(100) # turtle.goto(0, 0) # turtle.left(10) # turtle.up() # turtle.goto(0, -200) # turtle.down() # for x in range(36): # turtle.pencolor(randint(0, 255), randint(0, 255), randint(0, 255)) # turtle.speed(0) # turtle.circle(80) # turtle.left(10) # turtle.forward(50) for x in range(18): turtle.forward(100) turtle.left(30) turtle.forward(80) turtle.goto(0, 0) turtle.right(10) turtle.mainloop()
14.图形加循环
本节752字2025-03-03 17:24:40