• Home
  • About
    • Jang photo

      Jang

      Jang's blog

    • Learn More
    • Email
    • Facebook
    • Github
  • Posts
    • All Posts
    • All Tags
  • Projects

python autopep8

19 Jan 2017

Reading time ~1 minute

autopep8 이란?

python 파일을 PEP8 format으로 자동으로 바꿔주는 python package

Coding Convention?

프로그램을 작성 할 때 사용되는 기준

PEP8(Python Enhance Proposal 8) format?

python의 code convention은 pep8 format이 가장 대표적이다.

PEP8 Code Layout Overview
1) indentation은 4개의 스페이스를 사용
2) 한 라인은 79개의 글자를 넘지 않는다.
3) import format

Yes: import os
     import sys

No:  import sys, os

4)

참고 링크



pythonautopep8 Share Tweet +1