sys.py 995 B

12345678910111213141516171819202122232425262728293031323334
  1. """
  2. sys 模块提供系统特有的功能。
  3. """
  4. def exit(retval=0) -> None:
  5. """终止当前程序给定的退出代码。 函数会抛出 SystemExit 异常。"""
  6. ...
  7. def print_exception(exc, file=sys.stdout) -> None:
  8. """打印异常与追踪到一个类似文件的对象 file (或者缺省 sys.stdout )."""
  9. ...
  10. def exit(retval=0) -> None:
  11. """终止当前程序给定的退出代码。 函数会抛出 SystemExit 异常。"""
  12. ...
  13. def exit(retval=0) -> None:
  14. """终止当前程序给定的退出代码。 函数会抛出 SystemExit 异常。"""
  15. ...
  16. def exit(retval=0) -> None:
  17. """终止当前程序给定的退出代码。 函数会抛出 SystemExit 异常。"""
  18. ...
  19. argv = ... # type: str
  20. byteorder = ... # type: str
  21. implementation = ... # type: tuple
  22. modules = ... # type: list
  23. path = ... # type: str
  24. platform = ... # type: str
  25. stderr = ... # type: stream
  26. stdin = ... # type: stream
  27. version = ... # type: str
  28. version_info = ... # type: str