假设我从终端运行以下程序,然后立即决定停止它,我将不得不按 control-c 5 次。我怎样才能做到让一个 control-c 退出整个程序?
os.system("python run_me1.py -lines -s {0} -u {1}".format(args.start, args.until))
os.system("python run_me2.py -derivs -tt")
if args.mike: os.system("python run_me3.py -f derivs.csv tt.csv")
os.system("gnumeric derivs.csv")
os.system("gnumeric tt.csv")