📜  python exit for loop - Python代码示例

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

代码示例1
# python 3

for x in range(1, 10):
    print(x)
    if x == 4:
        break
# prints 1 to 4