Invalid syntax, when writing code, what small details are likely to cause invalid syntax to fail? For more reasons, the follow-up gradually added……
- Incorrect symbol usage
For example, only half parentheses are written, and Chinese symbols are used
Python is a language that relies heavily on indentation. If indentation is incorrect or if the indentation format is not consistent, the general error message will tell you explicitly.