PyCharm shows “PEP8: expected 2 blank lines, found 1”

前端 未结 2 2032
Happy的楠姐
Happy的楠姐 2021-02-03 20:18

Consider the following code:

def add_function(a, b):
    c = str(a) + b
    print \"c is %s\" % c

def add_int_function(c, d):
    e = c + d
    print \"the vaul         


        
2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-03 21:15

    Just add another line between your function definitions :

    1 line :

    2 lines:

提交回复
热议问题