通用操作系统服务¶
本章中描述的各模块提供了在(几乎)所有的操作系统上可用的操作系统特性的接口,例如文件和时钟。这些接口通常以 Unix 或 C 接口为参考对象,不过在大多数其他系统上也可用。这里有一个概述:
os
--- 多种操作系统接口io
--- 处理流的核心工具time
--- 时间的访问和转换argparse
--- 用于命令行选项、参数和子命令的解析器getopt
--- C-style parser for command line optionslogging
--- Python 的日志记录工具logging.config
--- Logging configurationlogging.handlers
--- Logging handlersgetpass
--- Portable password inputcurses
--- Terminal handling for character-cell displayscurses.textpad
--- 用于 curses 程序的文本输入控件curses.ascii
--- 用于 ASCII 字符的工具curses.panel
--- 针对 curses 的面板栈扩展platform
--- Access to underlying platform's identifying dataerrno
--- 标准 errno 系统符号ctypes
--- A foreign function library for Python