5、break语句

while count <= 100:
    print(count)

    if count == 5:
        break

    count += 1

print('loop over')
原文地址:https://www.cnblogs.com/ludongjun/p/8321879.html