0
我正在經歷一個多行註釋的一部分,如下所示:關於多/文檔字符串評論
def __init__(self):
"""
Connect to Nexus 7
RFCOMM port: 4
Nexus 7 MAC address: 08:60:6E:A5:82:C8
"""
如果我沒有記錯,這是一個多行註釋,但由於某種原因,Python使用多評論以建立連接。這讓我很好奇,爲什麼會發生?
「Python使用多行註釋建立連接。」你能詳細說明你的意思嗎?的[在Python多行註釋] – idjaw
可能重複(http://stackoverflow.com/questions/7696924/multiline-comments-in-python) –
貌似[文檔字符串](http://epydoc.sourceforge.net/docstrings .html)給我 – NightShadeQueen