- 德国国旗
江湖救急,德国国旗
- 2022-12-2 19:47:12 @
各位大师们,江湖救急呀! 德国国旗,不填色的代码 多谢多谢
4 条评论
-
...... (丁泓森) LV 9 @ 2022-12-4 11:23:53
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 rect_line(x, y, w, h, n): jump(x, y) i = 0 while i < n: rect(x, y, w, h) y = y + h i = i + 1 def germany(x, y): w = 300 h = 200 rect_line(x, y, w, h / 3, 3) def germany1(x, y): w = 300 h = 200 center_rect(x, y, w , h/3) center_rect(x, y, w, h)
可以这样试试
-
2022-12-3 13:48:25@
@歪歪晰 人才!(我是你弟!!!)
-
2022-12-2 20:27:34@
自己可以先思考一下@歪歪晰
:
from wonderLang import * import math def rect(x,y,w,h): jump(x,y) angle = 90 i = 0 angle = 90 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 rect_line(x,y,w,h,n): jump(x,y) i = 0 while i < n: rect(x,y,w,h) y = y + h i = i + 1 rect_line(-150, -100/3, 300, 200/3, 3)
- 1
信息
- ID
- 57
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 5
- 标签
- 递交数
- 1341
- 已通过
- 563
- 上传者