第九节调试
发布日期:2021-05-10 05:00:15 浏览次数:20 分类:精选文章

本文共 2203 字,大约阅读时间需要 7 分钟。

������������������������������������������Python���������������������������������������������������������������������������������������������������������������������������������������������

������������������������������print()������������������������������������������������������������������������������������������������������������������������������������������������print(variable)���������������������������������������������������

���������assert���������������������������������������������������������������������������������AssertionError���������������������������������������������assert������������������print()������������������������������������������������������������������������������������������assert���������������������������������������������������������������������AssertionError���������������������-O���������������������������������������������������

���������������������������������������logging���������������print()���assert���logging������������������������������������������������������DEBUG���INFO���WARNING������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

������������������������Python������������������pdb������������������������������������������������������������pdb������������������������������������������������������������������������������������������������������������������pdb.set_trace()������������������������������������������������������������������������������������������������������������������������������������������������������������

������������������������������������������IDE������Visual Studio Code���PyCharm������������������������������������������������������������������������������������������������Eclipse������Pydev������������������������������������������������������������������������������������������������������������������������

���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

上一篇:第十节 单元测试文档测试
下一篇:第八节 错误处理

发表评论

最新留言

不错!
[***.144.177.141]2025年04月22日 06时27分31秒