저는 지난 2 주 동안 몇 비트의 코드를 해부했는데 몇 가지 주제가 반복해서 나타납니다 ... 예를 들어 다음과 같은 점은 무엇입니까?주석 처리 된 함수와 "쉼표 스플 라이스"의 기능은 무엇입니까?
class eventHandler(object):
def create_event(self, event):
"""A general note here.
:tagged param event:
description
:tagged type event:
:class: `another class` # I do not understand the comma splices (`).
"""
# I do not understand why it ends here with no real purpose. Perhaps I'm not catching on to something.
def next_event(self, event):
...
# Continues with the same logic from above
것은 내가 파이썬 모듈 "감시"뿐만 아니라 인터넷에 흩어져있는 과거의 다른 모듈과 코드 조각에서 그것을 보았다. 메모 유지를위한 sudo-code 형식인가요? 기능이 중단 되었습니까? 나는 특히 뭔가를 이해하지 못하고 있는가?
편집 : Artagel 좋은 참조를 가져
, 내가 충분히 PEP-0008 깊은 읽을 수 있었다.
표준 PEP8 형식입니다. PyCharm pro는 실제로 많은 것을 할 것입니다. https://www.python.org/dev/peps/pep-0008/ – Artagel
@Artagel 나는 그것을보고 싶었을 것입니다. 문서를 보내 주셔서 감사합니다 (나는 다른 사람들을 돕기 위해 질문에 던질 것입니다). – SirJames