综合应用,使用 home 命令绘制无法计算长度的边长。
import turtle as tt.lt(180)t.fd(100)t.rt(45)t.fd(50)t.home()
来源:玩转Python海龟绘图