Network Protocol ErrorFirefox has experienced a network protocol violation that cannot be repaired.The page you are trying to view cannot be shown because an error in the network protocol was detected.Please contact the website owners to inform them of this problem.老...【阅读全文】
os._exit() vs sys.exit()Python的程序有两中退出方式:os._exit(), sys.exit()。本文介绍这两种方式的区别和选择。os._exit()会直接将python程序终止,之后的所有代码都不会继续执行。sys.exit()会引发一个异常:SystemExit,如果这个异常没有被捕获,那么python解释器将会退出。如果有捕获此异常的代码,那么这...【阅读全文】