There are four types of errors in python
Syntax error, runtime error, logic error, type error
- Syntax errors cannot be interpreted by the interpreter. For example, if the quotation marks do not appear in pairs, the grammatical errors will be immediately reported in the IDE , but are difficult to find in ordinary text editing tools, but the interpreter cannot interpret them;
- Run-time error, the syntax is correct, but an error will be reported during interpretation. Run-time errors are also called exceptions, such as zero denominator exceptions, type exceptions, etc.;
- Type error, basic syntax, errors caused by inconsistent use of data types;
- Logic error, there is no grammatical error, and no runtime exception, just the business logic is not correct
Many types of errors are recorded in projects that report errors on a daily basis, and solutions can be quickly found in future work to improve work efficiency