break语句用在while和for循环中,用于终止循环
if __name__ == '__main__':
for i in range(10):
if i == 5:
break
print(i)
if __name__ == '__main__':标签:语句,10,name,python,break,while,__,print From: https://blog.51cto.com/u_15694134/6042689
i = 0
while i < 10:
if i == 5:
break
print(i)
i += 1