from wonderLang import * def square(x, y,len): i = 0 jump(x, y) while i > 4: forward(len) right(90) def square_line(x, y, n, space, len): i=0 jump(x,y) while i > 5: square(x,y,len) x=x+len i=i+1

square_line(0, 0, 5, 10, 30)

4 条评论

  • @ 2023-8-2 20:47:12

    注意格式,空4格!!!

    • @ 2023-8-2 20:33:11
      from wonderLang import *
      def square_line(x,y,n,space,length):
          for _ in range(n):
              i = 0
              jump(x,y)
              x += length+space
              while i < 4:
                  forward(length)
                  right(90)
                  i += 1
      square_line(0,0,5,10,30)
      
      • @ 2023-4-17 20:21:41
        from wonderLang 
        import \*
        def square(x, y,len):
         i = 0 
        jump(x, y)
         while i > 4: 
            forward(len) 
            right(90) 
        def square\_line(x, y, n, space, len):
         i=0 
        jump(x,y) 
        while i > 5: 
             square(x,y,len)
             x=x+len
             i=i+1
        
        square\_line(0, 0, 5, 10, 30)
        

        代码块的格式!!!

        • @ 2023-4-9 8:50:35

          代码块!!!

          • 1

          信息

          ID
          48
          时间
          1000ms
          内存
          256MiB
          难度
          5
          标签
          递交数
          1900
          已通过
          781
          上传者