题目:绘制下面的图形
解析:
绘制长度依次增加的正方形。此题与 第 68 题 为同题不同解
答案:
import turtle as t def bian(d): t.fd(d) t.rt(90) s = 20 t.lt(90) for i in range(0, 12): bian(s) s = s + 10
绘制长度依次增加的正方形。此题与 第 68 题 为同题不同解
import turtle as t def bian(d): t.fd(d) t.rt(90) s = 20 t.lt(90) for i in range(0, 12): bian(s) s = s + 10