edX.org의 온라인 CS188.1x 클래스 (강사가 작성한 코드)에서 사용 된 일부 코드를 검토하면서 주석으로 사용하기 위해 한 세트의 큰 따옴표를 반복적으로 사용하는 것으로 나타났습니다.Python 주석에 대한 큰 따옴표 집합?
나는 이것을 전에 보지 못했고, 찾을 수있는 PEP8에도 언급되어 있지 않지만 확실히 작동하는 것으로 보인다. 누구나 나를 계몽시킬 수 있습니까?
class SomeClass():
"""
Some docstring info, using standard 'triple double quotes'
"""
def __init__(self):
"This is the comment style to which I'm referring."
some.code = foo # Here's a normal inline comment
def bar(self, item):
"Here is another example of the comment style"
return wtf