Development Tools开发工具

The modules described in this chapter help you write software. 本章介绍的模块可帮助您编写软件。For example, the pydoc module takes a module and generates documentation based on the module’s contents. 例如,pydoc模块接受一个模块并基于该模块的内容生成文档。The doctest and unittest modules contains frameworks for writing unit tests that automatically exercise code and verify that the expected output is produced. doctestunittest模块包含用于编写单元测试的框架,单元测试可以自动执行代码并验证是否生成了预期的输出。2to3 can translate Python 2.x source code into valid Python 3.x code.它可以将Python 2x源代码转换为有效的Python 3x代码。

The list of modules described in this chapter is:本章描述的模块列表如下: