sys: This module provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter. It is always available. 参见:https://docs.python.org/3/library/sys.html os:This module provides a por…
<os和sys的官方解释> ➤os os: This module provides a portable way of using operating system dependent functionality. 这个模块提供了一种方便的使用操作系统函数的方法. ➤sys sys: This module provides access to some variables used or maintained by the interpreter and to functions that…
python之sys.exit() os._exit() exit() quit()的简单使用 1>sys.exit() >>> import sys>>> help(sys.exit)Help on built-in function exit in module sys:exit(...) exit([status]) Exit the interpreter by raising SystemExit(status). If the…