📜  在python代码示例中绘制矩形的程序

📅  最后修改于: 2022-03-11 14:47:01.999000             🧑  作者: Mango

代码示例3
import turtle
 
t = turtle.Turtle()
t.fillcolor('blue')
t.begin_fill()
for i in range(4):
  t.forward(150)
  t.right(90)
t.end_fill()