How do you PEP 8-name a class whose name is an acronym?

后端 未结 8 789
抹茶落季
抹茶落季 2020-12-05 04:08

I try to adhere to the style guide for Python code (also known as PEP 8). Accordingly, the preferred way to name a class is using CamelCase:

Almost wi

8条回答
  •  Happy的楠姐
    2020-12-05 04:34

    It depends on the acronym. Another option would be class NASAJpl():, which makes it seem that "NASA" is the primary part, and "JPL" is the subordinate part.

提交回复
热议问题