python问题:如何停止无限循环,并打印出运行次数和运行时间

2025-03-22 10:00:46
推荐回答(1个)
回答1:

count = 0
while b==2:
    count += 1
    if count >= 10000:
        break
    ...