Exception Handling
01-Introduction
We know that 0 cannot be used as a divisor, but what should we do when a program tries to divide a number by 0 or open a non-existent file? How can we keep the program running stably? In this lesson, we'll cover exception handling.
02-Answer to Previous Exercise
03-What are Exceptions
04-Defining Exceptions
05-Throwing and Handling Exceptions
06-Common Runtime Exceptions
07-Using Option
08-Introduction to Log Printing
09-Exercise
Define a basic exception system and log system for your program.
Related Reading
Programmer Wanfeng focuses on AI programming training. Beginners can start making AI projects after watching his tutorial 《30 Lessons · AI Programming Training Camp》 co-produced with Turing Community.
🎓 AI 编程实战课程
想系统学习 AI 编程?程序员晚枫的 AI 编程实战课 帮你从零上手!
- 👉 课程报名:点击这里报名,前3讲免费试听
- 👉 免费试看:B站免费试看前3讲,先看看适不适合自己
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 程序员晚枫 - Python自动化办公与AI编程!

