📜  python next() 中的第 100 次迭代 - Python 代码示例

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

代码示例1
printcounter = 0

# Whatever a while loop is in Python
while (...):   
    ...
    if (printcounter == 1000000):
        print('Progress report...')
        printcounter = 0
    ...
    printcounter += 1