Program Frameworks项目框架¶
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:本章所述模块的完整列表如下:
turtle
—Turtle graphics海龟图案Introduction介绍Overview of available Turtle and Screen methods可用海龟和筛选方法概述Methods of RawTurtle/Turtle and corresponding functionsRawTurtle/Turtle方法及其函数Methods of TurtleScreen/Screen and corresponding functionsTurtleScreen/Screen的方法及相应的功能Public classes公共类Help and configuration帮助和配置turtledemo
—Demo scripts演示脚本Changes since Python 2.6自Python 2.6以来的更改Changes since Python 3.0自Python 3.0以来的变化
cmd
—Support for line-oriented command interpreters支持面向行的命令解释器shlex
—Simple lexical analysis简单词汇分析