绘制效果:
源代码:
# 正方形
import turtle
turtle.setup(650, 350, 200, 200)
turtle.penup()
turtle.pendown()
turtle.pensize(5)
turtle.pencolor("black")
turtle.fd(80)
for i in range(3):
turtle.left(90)
turtle.fd(80)
turtle.done()
2022-09-13 14:22:56
绘制效果:
源代码:
# 正方形
import turtle
turtle.setup(650, 350, 200, 200)
turtle.penup()
turtle.pendown()
turtle.pensize(5)
turtle.pencolor("black")
turtle.fd(80)
for i in range(3):
turtle.left(90)
turtle.fd(80)
turtle.done()