from wonderLang import *
def rect(x, y, w, h):
    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)

center_rect(0, 0, 100, 50)

1 条评论

  • 1

信息

ID
52
时间
1000ms
内存
256MiB
难度
5
标签
递交数
1653
已通过
627
上传者