how to iterate a nested loop in python?

前端 未结 0 1657
执念已碎
执念已碎 2020-12-29 10:45
i=5
while(i>=1):
    for j in range (6,i):
        j-=1
        print(j,end=\'\\n\')

    print(i,end=\'\\n\')
    i-=1

I should get this require

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