Python logo

上一主题

ctypes --- Python 的外部函数库

下一主题

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

当前页

  • 报告 Bug
  • 显示源码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.13.3 Documentation »
  • Python 标准库 »
  • 命令行界面库
  • |
  • |

命令行界面库¶

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

以下是一个概览:

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

上一主题

ctypes --- Python 的外部函数库

下一主题

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

当前页

  • 报告 Bug
  • 显示源码
«

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.13.3 Documentation »
  • Python 标准库 »
  • 命令行界面库
  • |
  • |
© 版权所有 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.

最后更新于 5月 18, 2025 (07:08 UTC). Found a bug?
由 Sphinx 8.2.3创建。