コーディングルール coding rule PEP8

python scriptの書き方は,原則としてPEP8 coding ruleに従おう.重要なルールは

    • 4文字開け(決してタブにしない)

    • クラス名は,大文字から初めて別な単語を大文字で始める.例 MyClass

    • 関数名は小文字とアンダースコア.例 my_func

    • モジュール名は小文字とアンダースコア.例my_module

    • パッケージ名は小文字のみ.例 mypackage

PEP8の日本語訳がhttps://github.com/mumumu/pep8-jaで読める.

Follow PEP8 coding rule. The most important roles may be

    • 4-character spaces

    • Class name is like MyClass

    • Function names should contains lower characters and '_', such as "my_func".

    • Module names should contains lower characters and '_', such as "my_module".

    • Package names should contains only lower characters without '_', such as "mypackage".

Full document of PEP8 is found at https://www.python.org/dev/peps/pep-0008/