def rect(x, y, w, h):
    jump(x, y)
    angle = 90
    i = 0
    while i < 2:
        forward(w)
        right(angle)
        forward(h)
        right(angle)
        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 center_rect(x, y, w, h, n):
    x = 0
    y = 0
    i = 0
    while i < n:
        jump(x, y)
        i = i + 1

def switzerland(x, y) :
    w = 200
    h = 200
    center_rect(x, y, w, h)
    center_rect(x, y, 75, 25)
    center_rect(x, y, 25, 75)

switzerland(0,0)

1 条评论

  • 1

信息

ID
59
时间
1000ms
内存
256MiB
难度
3
标签
递交数
1053
已通过
530
上传者