# coding:utf-8 ''' filename:exit_file.py ''' import sys for i in range(10): if i == 5: sys.exit() else: print(i)