首页 > 技术文章 > Python结束当前运行的代码
jiyu-hlzy 2020-02-14 13:22 原文
import sys print(0) print(1) print(2) # 到此结束运行 sys.exit() # 已结束,以下不会执行 print(4) print(5)