Pychar appears“ PEP:8 expected 2 blank lines ,found 1″

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: