Naming Conventions in Python (代码规范,命名规则)

Naming Convention in Python (代码规范,命名规则)

General rules: 


CamelCase/camelCase (mixed case) 


 CamelCase


camelCase

Ref: https://en.wikipedia.org/wiki/Camel_case

Camel case (sometimes stylized as camelCase or CamelCase, also known as camel caps or more formally as medial capitals) is the practice of writing phrases without spaces or punctuation and with capitalized words. The format indicates the first word starting with either case, then the following words having an initial uppercase letter. Common examples include "YouTube", "iPhone" and "eBay". Camel case is often used as a naming convention in computer programming. It is also sometimes used in online usernames such as "JohnSmith", and to make multi-word domain names more legible, for example in promoting "EasyWidgetCompany.com".

The more specific terms Pascal case and upper camel case refer to a joined phrase where the first letter of each word is capitalized, including the initial letter of the first word. Similarly, lower camel case (also known as dromedary case) requires an initial lowercase letter. Some people and organizations, notably Microsoft, use the term camel case only for lower camel case, designating Pascal case for the upper camel case.

Snake case

snake_case


Snake case (stylized as snake_case) refers to the style of writing in which each space is replaced with an underscore (_) character, and the first letter of each word is written in lowercase. It is a commonly used naming convention in computing, for example for variable and subroutine names, and for filenames. One study has found that readers can recognize snake case values more quickly than camel case.

DELL笔记本突然无法接收wifi信号,难死我了,看看最后怎么解决的

DELL笔记本突然无法接收wifi信号


通过dell网站链接,自动检测升级了驱动程序。

升级了wifi driver,终于解决了突然接收到的wifi信号变弱甚至无法连接的情况。现在速度杠杠的!#exetel #dell #precision #5550

What are horizontal and vertical scaling in data engineering

Horizontal and vertical scaling

This pic tells you the difference between vertical and horizontal scaling.


Featured Posts

SnowPro Badges and Certificates

SnowPro Badges and Certificates Online Verification https://achieve.snowflake.com/profile/richardhou888/wallet

Popular Posts Recommended