Programming Language/Python 기본문법

[Python] Python code style guide

lxvxxu 2024. 7. 19. 01:10

 

 

코딩할 때 중요한 것 중 하나가 바로 가독성이다.

알아보기 쉽게 들여쓰기, 띄어쓰기 등 코드를 작성하는 방식을 통일하도록

Python을 사용하는 사람들끼리 일종의 약속으로 정한 것이 바로 Python code style guid이다.

 

>> PEP 8 (Python Enhancement Proposals) 에서 자세히

https://peps.python.org/pep-0008/

 

PEP 8 – Style Guide for Python Code | peps.python.org

This document gives coding conventions for the Python code comprising the standard library in the main Python distribution. Please see the companion informational PEP describing style guidelines for the C code in the C implementation of Python.

peps.python.org