- 指定位置正方形方阵
大家看看哪里不对
- 2023-3-10 22:00:07 @
def square_line(x, y, n, space, len):
i = 0
while i < n:
square(x,y,len)
x = x + len +space
i = i + 1
def square_square(x, y, space, len, n, m):
i = 0
jump(x,y)
while i < m:
square_line(x,y,n,space,len)
y = y -len-space
i = i + 1
square_square(0, 0, 10, 30, 3, 3)
9 条评论
-
谢力阳 LV 5 @ 2023-7-28 18:02:22
from wonderLang import *去哪了
-
2023-7-24 10:44:17@
sqear错了,正确应该这样
def square(z,y,lenth): jump(z,y) i = 0 while i < 4: forward(lenth) right(90) i = i + 1 def square_line(x,y,space,lenth,n): jump(x,y) x1 = x y1 = y i = 0 while i < n: square(x1,y1,lenth) x1 = x1 + lenth + space i = i + 1 def square_square(x,y,space,length,n,m): jump(x,y) x1 = x y1 = y i = 0 while i < m: square_line(x1,y1,space,length,n) y1 = y1 - length - space i = i + 1 square_square(0,0,10,30,3,3)
-
2023-4-25 18:41:17@
from wonderLang import * def square(x, y, l): jump(x, y) angle = 90 i = 0 while i < 4: forward(l) right(angle) i = i + 1 def square_line(): x = 0 y = 0 length = 30 space = 10 i = 0 while i < 5: square(x, y, length) x = x + length + space i = i + 1 def square_square(x, y, space, len, n, m): i = 0 while i < m: square_line(x, y, n, space, len) y = y - len - space i = i + 1 square_square(0, 0, 10, 30, 3, 3) 大家帮我看看哪里不对?
-
2023-3-11 18:02:46@
请 您 能 在 PyCharm 里 面 运 行 完 毕 再 发 贴 子 吗 ?
-
2023-3-11 16:36:44@
认真听课
-
2023-3-11 15:05:02@
如果是画图的题目,那么请你先看看运行的结果是否符合题目要求,如果查找不出来可以“自己先debug ” 反之可以发讨论或者问老师
-
2023-3-11 15:04:11@
说一下你的问题:
from wonderLang import *
都不在,运行肯定报错square
函数都不在,运行也报错
总得说:先请在 pycarm(PC) 上运行无误并且画图无误后提交,第一点都没满足,频繁发讨论肯定不对啊
我们并没有打击你,而是想让你可以在编程的路上好好发挥,你也没有必要删除我们的回复。毕竟我们已经发现你是新手了
-
2023-3-11 14:56:40@
请先再pc上运行无误后递交
-
2023-3-11 14:20:30@
错误很明显
- 1
信息
- ID
- 49
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 7
- 标签
- 递交数
- 2807
- 已通过
- 742
- 上传者