题目:绘制下面的图形

python turtle 100-17
Python 海龟绘图 100 题——第17题

解析:

综合应用,绘制有对角线的长方形。

答案:

Python
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)