Hello! Here is how to draw a little person using Python:
First, you need to install a library called turtle. You can install it by typing on the command line pip install turtle
.
Then, you can draw a little person using the following code:
import turtle
# 画头
turtle.circle(20)
# 画身体
turtle.penup()
turtle.goto(0, -20)
turtle.pendown()
turtle.forward(40)
# 画左腿
turtle.penup()
turtle.goto(-10, -50)
turtle.pendown()
turtle.forw