import turtle turtle.pensize(10) turtle.pencolor("blue") turtle.penup() turtle.fd(-240) for i in range(4): turtle.penup() turtle.fd(40) turtle.pendown() turtle.fd(100) turtle.penup() turtle.fd(40) turtle.left(90)
import turtle turtle.pensize(10) turtle.pencolor("blue") turtle.penup() turtle.fd(-240) for i in range(4): turtle.penup() turtle.fd(40) turtle.pendown() turtle.fd(100) turtle.penup() turtle.fd(40) turtle.left(90)
原文:https://www.cnblogs.com/aa756878518/p/8719179.html