How to select one list from an output of multiple lists?

前端 未结 0 1646
暗喜
暗喜 2020-11-22 04:40

For example:

for k in range(3):
    for v in range(k+1):
        list1.append(v)
        print(list1)

Gives an output of:

[0]
         


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