Python基础 · 免费预览

测试与打包

把断言组织成测试,了解 pytest 如何发现它们,把代码拆成自己的模块,并学习项目如何打包和安装。

1. Overview

Overview

2. Tests as Assertions

Tests as Assertions

3. pytest Discovers the Rest

pytest Discovers the Rest

4. Splitting Code into Modules

Splitting Code into Modules

5. Packaging for Others

Packaging for Others

6. Turn Assertions into Tests

Turn Assertions into Tests

7. Your Own Module

Your Own Module

进入交互式练习

免费注册 · 即时批改 · 自动安排间隔复习。

免费开始这门课