Python 海龟绘图 100 题——第17题
综合应用,绘制有对角线的长方形。
import turtle as t t.fd(100) t.rt(90) t.fd(40) t.home() t.rt(90) t.fd(40) t.lt(90) t.fd(100)