while creating a 2d array appending or inserting item in one of its row inserts or appends twice rather than once

后端 未结 0 1027
执念已碎
执念已碎 2021-02-10 07:14
    def prettyPrint(n):
        if n == 1:
            return [[1]]
        else:
            A = prettyPrint(n-1)
            k = [n for i in range(n+1)]
            fo         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题