How to print lines in between two loops using list comprehension in python, to create a pyramid

前端 未结 0 1971
名媛妹妹
名媛妹妹 2021-01-17 15:48

I want to acheive this Output:

1
12
123
1234
12345

Whis is done with normal for loops

f         


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