简体   繁体   中英

What are the main differences between PEP8 and Google Python Style Guide?

  1. most notably they use two spaces for indentation instead of 4.
  2. The CamelCase style for functions and methods instead of the camel_case style.

主要区别在于 Google Python Style 提供了有关如何编写代码的更多详细信息,例如如何编写文档字符串或何时为变量使用别名,这在PEP8中未指定

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM