Python pep8 - 带有国家名称的方法名称?
Python pep8 - method name with country name?
如何定义方法?怎么会合适?
def translate_to_english
pass
def translate_to_English
pass
参见 Python PEP 8。
Function names should be lowercase, with words separated by
underscores as necessary to improve readability.
mixedCase is allowed only in contexts where that's already the
prevailing style Variables...
使用函数命名规则:
lowercase with words separated by underscores as necessary to improve
readability.
我更喜欢translateToEnglish
而不是translate_to_english
如何定义方法?怎么会合适?
def translate_to_english
pass
def translate_to_English
pass
参见 Python PEP 8。
Function names should be lowercase, with words separated by underscores as necessary to improve readability.
mixedCase is allowed only in contexts where that's already the prevailing style Variables...
使用函数命名规则:
lowercase with words separated by underscores as necessary to improve readability.
我更喜欢translateToEnglish
而不是translate_to_english