Python logo

Previous topic

ctypes --- Python 的外部函数库

Next topic

argparse --- 用于命令行选项、参数和子命令的解析器

This page

  • Report a bug
  • Show source

Navigation

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.13.7 Documentation »
  • Python 标准库 »
  • Command-line interface libraries
  • |
  • |

Command-line interface libraries¶

本章介绍的模块可以为应用程序实现命令行和终端界面。

以下是一个概览:

  • argparse --- 用于命令行选项、参数和子命令的解析器
  • optparse --- 命令行选项的解析器
  • getpass --- 可移植的密码输入
  • fileinput --- 迭代来自多个输入流的行
  • curses --- 字符单元显示的终端处理
  • curses.textpad --- 用于 curses 程序的文本输入控件
  • curses.ascii --- 用于 ASCII 字符的工具
  • curses.panel --- 针对 curses 的面板栈扩展
  • cmd --- 对面向行的命令解释器的支持

Previous topic

ctypes --- Python 的外部函数库

Next topic

argparse --- 用于命令行选项、参数和子命令的解析器

This page

  • Report a bug
  • Show source
«

Navigation

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.13.7 Documentation »
  • Python 标准库 »
  • Command-line interface libraries
  • |
  • |
© Copyright 2001-2025, Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

The Python Software Foundation is a non-profit corporation. Please donate.

Last updated on 9月 16, 2025 (08:42 UTC). Found a bug?
Created using Sphinx 8.2.3.