- 法国国旗
这个为什么不对(真不会)
- 2023-8-14 20:27:38 @
from wonderLang import *
def france(x, y):
jump(x,y)
i=0
while i<2:
forward(300)
right(90)
forward(200)
right(90)
i=i+1
def a(x,y):
france(100,100)
jump(x+100,y)
right(90)
forward(200)
right(-90)
jump(x + 100+100, y)
right(90)
forward(200)
right(-90)
a(0,0)
3 条评论
-
汤子轩 LV 3 @ 2023-9-2 8:31:02
这是对的代码
-
2023-9-2 8:27:28@
from wonderLang import *
def rect(w,h): i=0 while i < 2: forward(w) right(90) forward(h) right(90) i = i + 1
def center_rect(x,y,w,h): jump(x,y) jump(x-w/2,y+h/2) rect(w,h)
def france(x,y): jump(x,y) center_rect(x,y,300,200) center_rect(x,y,300/3,200)
france(0,0)
-
2023-9-2 8:26:39@
天才
- 1
信息
- ID
- 56
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 6
- 标签
- 递交数
- 1715
- 已通过
- 578
- 上传者