from wonderLang import *

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(100, 100, 10, 30, 3, 3)

5 条评论

  • @ 2023-8-18 16:22:36
    from wonderLang import *
    def square_square(x,y,space,length,n,m):
        for _ in range(m):
            for _ in range(n):
                i = 0
                jump(x, y)
                x += length + space
                while i < 4:
                    forward(length)
                    right(90)
                    i += 1
            y -= length + space
            x = 0
            jump(x,y)
    square_square(0,0,10,30,3,3)
    

    也可以问老师

    • @ 2023-5-15 19:50:10

      江湖救急

      • @ 2023-5-15 19:49:28

        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_square(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 while i < m: square_square(x, y, n, space, len) y = y - len - space i = i + 1 square_square(0, 0, 10, 30, 3, 3)

        • @ 2023-5-14 9:42:00

          可以看一下老师讲解的视频,对比一下自己与老师代码

          • @ 2023-5-13 21:02:09

            from wonderLang import *

            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(100, 100, 10, 30, 3, 3)

            • 1

            信息

            ID
            49
            时间
            1000ms
            内存
            256MiB
            难度
            7
            标签
            递交数
            2805
            已通过
            741
            上传者