counter = 0 while counter < 10: counter += 1 if counter == 5: print("Reached 5") break print(counter). 13 Likes. FAQ: Learn Python: Loops - Break.
確定! 回上一頁