📜  Python 堆栈溢出中的 for 循环模式 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:04.651000             🧑  作者: Mango

代码示例1
v = 1
lines = 4
for i in range(lines):
    for j in range(i):
        print(v, end=' ')
        v += 1
    print( )