使用 turtle 库,绘制一个八角图形。
注意:这是一个自动评阅题目,请补充"编程模板"中横线内容,横线不保留。
代码
import turtle as t
t.pensize(2)
for i in range(8):
t.fd(150)
t.left(135)