When using pychar to write python, the above problem always appears in the line def function() .
“PEP 8: expected 2 blank lines, found 1”
The specific reason is that there must be two empty lines above the line that declares the function, otherwise this will happen.
The annotation of function can be integrated with function
# coding: utf-8
# fun1
def func1():
return 0
# fun2
def func2():
return 1
Read More:
- Latex letters with symbols, wavy lines, horizontal lines, horn, etc
- “Failed to create interpreter” appears when pychar creates a new project
- After Vue is packaged, a blank page appears, an error is reported in the resource request, and there is no error handling scheme
- Pychar reported an error. Unable to set the python SDK in Python 3.8. This SDK appears to be invalid.
- Due to multi process — pychar debug breakpoint debugging encounter pychar dataloader will be stuck
- PEP 8: block comment should start with ‘# ‘
- Several methods of deleting all empty lines in text under Linux
- Vue More than 1 blank line not allowed
- Type error: sequence item 0: expected STR instance, int found
- The reason and solution of the error of join function: sequence item 0: expected STR instance, int found
- Err: error parsing query: found name, expected identifier, string
- Expected indentation of 6 spaces but found 10
- Python: How to Fix “Ord() expected string of length 1, but int found”
- RuntimeError: Found dtype Double but expected Float”
- When executing shell script, $’r ‘: command not found appears
- Command not found: ADB appears on Mac
- error Expected indentation of 2 spaces but found 8
- Expected STR instance, float found
- Vscode Terminal Cannot Input & Blank [How to Solve]
- Solve the runtimeerror in RNN: expected scalar type long but found float error