def rect(x, y, w, h): i = 0 jump(x, y) while i < 2: forward(w) right(90) forward(h) right(90) i = i + 1

def center_rect(x, y, w, h): jump(x, y) x1 = x - w / 2 y1 = y + h / 2 rect(x1, y1, w, h)

def gambia(x, y): w = 300 h = 200 center_rect(x, y, w, h) center_rect(x, y, w, h / 3) center_rect(x, y, w, h / 3 * (6 / 8))

gambia(0, 0)

0 条评论

目前还没有评论...

信息

ID
58
时间
1000ms
内存
256MiB
难度
4
标签
递交数
1215
已通过
555
上传者