expected two blank lines pep8 warning in python

前端 未结 5 2021
不知归路
不知归路 2020-12-25 13:44

I\'m using vim editor as python IDE. Below is a simple python program to calculate square root of a number:

import cmath
def sqrt():
    try:
        num = i         


        
5条回答
  •  时光说笑
    2020-12-25 14:34

    You need to give two blank lines between meaningful code blocks.

    These include (for example):

    • The import block
    • Each function

提交回复
热议问题