- 朝鲜国旗
高手来了
- 2023-8-10 20:07:12 @
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 polygon(x, y, sides, length):
jump(x, y)
i = 0
while i < sides:
forward(length)
right(360/sides)
i = i + 1
def circle(x, y, r):
jump(x, y)
s = 2 * 3.1415926 * r
length = s / 100
polygon(x, y+r, 100, length)
def star(length):
i = 0
while i < 5:
forward(length)
right(144)
i = i + 1
def center_star(x, y, r):
jump(x, y)
star_jump(x, y, r)
length = star_length(r)
star(length)
def northkorea(x, y):
jump(x, y)
w = 300
h = 200
center_rect(x, y, w, h)
center_rect(x, y, w, h / (4+1+15+1+4) * (1+15+1))
center_rect(x, y, w, h / (4 + 1 + 15 + 1 + 4) * 15)
circle(x-55, y, h / (4+1+15+1+4) * 15 / 3)
center_star(x-55, y, h / (4+1+15+1+4) * 15 / 3)
northkorea(0, 0)
答案送给你!
3 条评论
-
哈迷乌鸦 LV 3 @ 2023-8-31 22:17:58
删掉 -
2023-8-26 8:38:11@
真正的高手不会做出这种行为
👍 1 -
2023-8-18 16:10:04@
不要在讨论区发题解
- 1
信息
- ID
- 60
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 6
- 标签
- 递交数
- 1673
- 已通过
- 517
- 上传者