This document is for an old version of Python that is no longer supported. You should upgrade and read the Python 当前稳定版本的文档.

# 23. 程式框架

The modules described in this chapter are frameworks that will largely dictate the structure of your program. Currently the modules described here are all oriented toward writing command-line interfaces.

The full list of modules described in this chapter is:

- 23.1. `cmd` — Support for line-oriented command interpreters
  - 23.1.1. Cmd Objects
- 23.2. `shlex` — Simple lexical analysis
  - 23.2.1. shlex Objects
  - 23.2.2. Parsing Rules