DAY 08 - Turtle

tags: python教學 turtle

Turtle

https://github.com/tolgaatam/ColabTurtle

from ColabTurtle.Turtle import * initializeTurtle() def cube(n): for i in range(4): forward(n) right(90) speed(5) color("orange") penup() # = pu()/up() goto(getx()+50,gety()-100) pendown() # = pd() cube(100) penup() # = pu()/up() goto(getx()-200,gety()) pendown() # = pd() cube(100) pu() home()

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →