Python结束当前运行的代码,


import sys

print(0)
print(1)
print(2)

# 到此结束运行
sys.exit()

# 已结束,以下不会执行
print(4)
print(5)





相关内容

    暂无相关文章

评论关闭