PEP8 とスタック オーバーフローに関するいくつかの質問を読んでいましたが、コメント間のスペースについて疑問に思っていました。
このコードがあるとしましょう:
class MyBrowser(QWebPage):
''' Settings for the browser.'''
def __init__(self):
QWebPage.__init__(self)
# Specifies whether images are automatically loaded in web pages.
self.settings().setAttribute(QWebSettings.AutoLoadImages, True)
def userAgentForUrl(self, url):
''' Returns a User Agent that will be seen by the website. '''
return "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.15 (KHTML, like Gecko) Chrome/24.0.1295.0 Safari/537.15"
コメントと実際のコードの間に空白行を入れる最も Pythonic な方法は何ですか? 私のプログラムを何人かの専門家に見せたいです。そして、私のコードをよりプロフェッショナルに見せたいです。