Python基础 · 免费预览
调试
系统地调试含有错误的代码。找出让代码更少出错、更容易测试的办法。
1. Overview
Overview
2. Know What It's Supposed to Do
Know What It's Supposed to Do
3. Make It Fail Every Time
Make It Fail Every Time
4. Make It Fail Fast
Make It Fail Fast
5. Change One Thing at a Time, For a Reason
Change One Thing at a Time, For a Reason
6. Keep Track of What You've Done
Keep Track of What You've Done
7. Version Control Revisited
Version Control Revisited
8. Be Humble
Be Humble
9. Debug With a Neighbor
Debug With a Neighbor
10. Not Supposed to be the Same
Not Supposed to be the Same