- 中心矩形
大佬来看看这道题哪里有错
- 2023-5-12 20:35:46 @
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 条评论
-
李禹锡 LV 3 @ 2023-6-9 21:39:02
在angle=90的上面加jump(x,y)
- 1
信息
- ID
- 52
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 5
- 标签
- 递交数
- 1653
- 已通过
- 627
- 上传者