教育村's Archiver
版块
›
Python
› Python-turtle绘制三角形
weber
发表于 2020-4-20 22:58:17
Python-turtle绘制三角形
用Python-turtle绘制边长为200的三角形
import turtle
t=turtle.Turtle()
t.forward(200)
t.left(120)
t.forward(200)
t.left(120)
t.forward(200)
t.hideturtle()
页:
[1]
查看完整版本:
Python-turtle绘制三角形