A few lines of Python code teach you how to map turtles

A few lines of Python code teach you how to map turtles

1. Define turtle mapping

import function

2. Basic settings

1. Show the arrow turtle.showturtle()
2. Set the color turtle.color("pink")
3. Set the width turtle.pensize()
4. Set the travel speed turtle.speed()
Insert picture description here
*Set according to your preferences

3. Start drawing

`Insert picture description here

4. Running results

Insert picture description here

Insert picture description here

Guess you like

Origin blog.csdn.net/zjdzka/article/details/109191857