这几天不知道为什么总是在想这个东西。python推荐的是使用下划线,也有很多地方依然使用的是匈牙利命名法,比如微软和苹果。
Function Names
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 (e.g. threading.py), to retain backwards compatibility.
原文:http://www.python.org/dev/peps/pep-0008/
从某种角度来说,觉得下划线似乎确实是更适合阅读,像空格,在视觉上更可读一些。
this_is_readability_statement
thisIsReadabilityStatement?
Function Names
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 (e.g. threading.py), to retain backwards compatibility.
原文:http://www.python.org/dev/peps/pep-0008/
从某种角度来说,觉得下划线似乎确实是更适合阅读,像空格,在视觉上更可读一些。
this_is_readability_statement
thisIsReadabilityStatement?