Getting started with pythonBug-learn python from scratch

1. The origin and classification of bugs

1. The origin of the bug

Insert picture description here

2. Common types of bugs

(1) SyntaxError caused by carelessness

Insert picture description here
Insert picture description here

(2) Careless self-examination book

Insert picture description here

(3) Errors caused by unskilled knowledge

Insert picture description here

(4) Solutions to problems caused by unclear thinking

Insert picture description here

(5) Problems caused by unclear thinking

Insert picture description here

(6) Passive fall

Insert picture description here

Second, Python's exception handling mechanism

1. Common types of bugs

Insert picture description here
Insert picture description here

2.try…except

Insert picture description here

3. Multiple except structures

Insert picture description here

4.try...except...else structure

Insert picture description here

5.try…except…else…finally结构

Insert picture description here
Insert picture description here

6.traceback module

Insert picture description here

3. Common abnormal types

Insert picture description here

4. Debugging of PyCharm development environment

Insert picture description here

V. Summary

Insert picture description here

Six, python learning portal

Python quick start-learn python from scratch

Guess you like

Origin blog.csdn.net/weixin_43402353/article/details/109243750