René's URL Explorer Experiment


Title: GitHub - shendeguize/GooglePythonStyleGuideCN: Google Python Style Guide CN 谷歌Python代码风格指南中文翻译

Open Graph Title: GitHub - shendeguize/GooglePythonStyleGuideCN: Google Python Style Guide CN 谷歌Python代码风格指南中文翻译

X Title: GitHub - shendeguize/GooglePythonStyleGuideCN: Google Python Style Guide CN 谷歌Python代码风格指南中文翻译

Description: Google Python Style Guide CN 谷歌Python代码风格指南中文翻译. Contribute to shendeguize/GooglePythonStyleGuideCN development by creating an account on GitHub.

Open Graph Description: Google Python Style Guide CN 谷歌Python代码风格指南中文翻译. Contribute to shendeguize/GooglePythonStyleGuideCN development by creating an account on GitHub.

X Description: Google Python Style Guide CN 谷歌Python代码风格指南中文翻译. Contribute to shendeguize/GooglePythonStyleGuideCN development by creating an account on GitHub.

Opengraph URL: https://github.com/shendeguize/GooglePythonStyleGuideCN

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:fc865819-7d4e-1c6f-5edf-51f284398ca5
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idAAB4:19164B:81C84F:AF046E:6973DD6C
html-safe-nonce57d1a10ab9f3cd24f2d616cd5b597e30d5450fe3bbb3ee07ecc0951a38a2a169
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUI0OjE5MTY0Qjo4MUM4NEY6QUYwNDZFOjY5NzNERDZDIiwidmlzaXRvcl9pZCI6IjM5NzY0NTU5ODQ4NDE0ODE1ODAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac87caa701090fbbed31d0709a961172f64aecddb733c76598f76241f35ed234dc
hovercard-subject-tagrepository:236795426
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location//
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/shendeguize/GooglePythonStyleGuideCN
twitter:imagehttps://opengraph.githubassets.com/5908af7fe063249967d8cd1b591d5c83b29b074efd3f39f3752e6f481734887e/shendeguize/GooglePythonStyleGuideCN
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5908af7fe063249967d8cd1b591d5c83b29b074efd3f39f3752e6f481734887e/shendeguize/GooglePythonStyleGuideCN
og:image:altGoogle Python Style Guide CN 谷歌Python代码风格指南中文翻译. Contribute to shendeguize/GooglePythonStyleGuideCN development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonebcae444bf5f475d712cb2ad536c10eaebd406c84ae2d3a77c5f05aee5010c786
turbo-cache-controlno-preview
go-importgithub.com/shendeguize/GooglePythonStyleGuideCN git https://github.com/shendeguize/GooglePythonStyleGuideCN.git
octolytics-dimension-user_id30931540
octolytics-dimension-user_loginshendeguize
octolytics-dimension-repository_id236795426
octolytics-dimension-repository_nwoshendeguize/GooglePythonStyleGuideCN
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id236795426
octolytics-dimension-repository_network_root_nwoshendeguize/GooglePythonStyleGuideCN
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7da815895d8ce3ba55f0017efb5a34bac921756a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fshendeguize%2FGooglePythonStyleGuideCN
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fshendeguize%2FGooglePythonStyleGuideCN
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=shendeguize%2FGooglePythonStyleGuideCN
Reloadhttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN
Reloadhttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN
Reloadhttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN
shendeguize https://patch-diff.githubusercontent.com/shendeguize
GooglePythonStyleGuideCNhttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fshendeguize%2FGooglePythonStyleGuideCN
Fork 59 https://patch-diff.githubusercontent.com/login?return_to=%2Fshendeguize%2FGooglePythonStyleGuideCN
Star 205 https://patch-diff.githubusercontent.com/login?return_to=%2Fshendeguize%2FGooglePythonStyleGuideCN
205 stars https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/stargazers
59 forks https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/forks
Branches https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/branches
Tags https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/tags
Activity https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/activity
Star https://patch-diff.githubusercontent.com/login?return_to=%2Fshendeguize%2FGooglePythonStyleGuideCN
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fshendeguize%2FGooglePythonStyleGuideCN
Code https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN
Issues 0 https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/issues
Pull requests 0 https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/pulls
Actions https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/actions
Projects 0 https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/projects
Security 0 https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/security
Insights https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/pulse
Code https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN
Issues https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/issues
Pull requests https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/pulls
Actions https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/actions
Projects https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/projects
Security https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/security
Insights https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/pulse
Brancheshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/branches
Tagshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/tags
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/branches
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/tags
22 Commitshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/commits/master/
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/commits/master/
README.mdhttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/blob/master/README.md
README.mdhttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/blob/master/README.md
READMEhttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#谷歌python代码风格指南-中文翻译
shendeguize@githubhttps://github.com/shendeguize
https://github.com/shendeguize/GooglePythonStyleGuideCNhttps://github.com/shendeguize/GooglePythonStyleGuideCN
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#0-目录
谷歌Python代码风格指南 中文翻译https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#%E8%B0%B7%E6%AD%8Cpython%E4%BB%A3%E7%A0%81%E9%A3%8E%E6%A0%BC%E6%8C%87%E5%8D%97-%E4%B8%AD%E6%96%87%E7%BF%BB%E8%AF%91
0 目录https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#0-%E7%9B%AE%E5%BD%95
1 背景https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#1-%E8%83%8C%E6%99%AF
2 Python语言规则https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2-python%E8%AF%AD%E8%A8%80%E8%A7%84%E5%88%99
2.1 Linthttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#21-lint
2.1.1Definition(以下都译为定义)https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#211definition%E4%BB%A5%E4%B8%8B%E9%83%BD%E8%AF%91%E4%B8%BA%E5%AE%9A%E4%B9%89
2.1.2 Proshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#212-pros
2.1.3 Conshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#213-cons
2.1.4 Decision(以下都译为建议)https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#214-decision%E4%BB%A5%E4%B8%8B%E9%83%BD%E8%AF%91%E4%B8%BA%E5%BB%BA%E8%AE%AE
2.2 Importshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#22-imports
2.2.1 定义https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#221-%E5%AE%9A%E4%B9%89
2.2.2 Proshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#222-pros
2.2.3 Conshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#223-cons
2.2.4 建议https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#224-%E5%BB%BA%E8%AE%AE
2.3 包https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#23-%E5%8C%85
2.3.1 Proshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#231-pros
2.3.2 Conshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#232-cons
2.3.3 建议https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#233-%E5%BB%BA%E8%AE%AE
2.4 异常https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#24-%E5%BC%82%E5%B8%B8
2.4.1 定义https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#241-%E5%AE%9A%E4%B9%89
2.4.2 Proshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#242-pros
2.4.3 Conshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#243-cons
2.4.4 建议https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#244-%E5%BB%BA%E8%AE%AE
2.5 全局变量https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#25-%E5%85%A8%E5%B1%80%E5%8F%98%E9%87%8F
2.5.1 定义https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#251-%E5%AE%9A%E4%B9%89
2.5.2 Proshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#252-pros
2.5.3 Conshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#253-cons
2.5.4 建议https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#254-%E5%BB%BA%E8%AE%AE
2.6 内嵌/局部/内部 类和函数https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#26-%E5%86%85%E5%B5%8C%E5%B1%80%E9%83%A8%E5%86%85%E9%83%A8-%E7%B1%BB%E5%92%8C%E5%87%BD%E6%95%B0
2.6.1 定义https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#261-%E5%AE%9A%E4%B9%89
2.6.2 Proshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#262-pros
2.6.3 Conshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#263-cons
2.6.4 建议https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#264-%E5%BB%BA%E8%AE%AE
2.7 列表推导和生成器表达式https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#27-%E5%88%97%E8%A1%A8%E6%8E%A8%E5%AF%BC%E5%92%8C%E7%94%9F%E6%88%90%E5%99%A8%E8%A1%A8%E8%BE%BE%E5%BC%8F
2.7.1 定义https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#271-%E5%AE%9A%E4%B9%89
2.7.2 Proshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#272-pros
2.7.3 Conshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#273-cons
2.7.4 建议https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#274-%E5%BB%BA%E8%AE%AE
2.8 默认迭代器和运算符https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#28-%E9%BB%98%E8%AE%A4%E8%BF%AD%E4%BB%A3%E5%99%A8%E5%92%8C%E8%BF%90%E7%AE%97%E7%AC%A6
2.8.1 定义https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#281-%E5%AE%9A%E4%B9%89
Proshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#pros
Conshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#cons
建议https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#%E5%BB%BA%E8%AE%AE
2.9 生成器https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#29-%E7%94%9F%E6%88%90%E5%99%A8
2.9.1 定义https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#291-%E5%AE%9A%E4%B9%89
2.9.2 Proshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#292-pros
2.9.3 Conshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#293-cons
2.9.4 建议https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#294-%E5%BB%BA%E8%AE%AE
2.10 Lambda表达式https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#210-lambda%E8%A1%A8%E8%BE%BE%E5%BC%8F
2.10.1 定义https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2101-%E5%AE%9A%E4%B9%89
2.10.2 Proshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2102-pros
2.10.3 Conshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2103-cons
2.10.4 建议https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2104-%E5%BB%BA%E8%AE%AE
2.11 条件表达式https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#211-%E6%9D%A1%E4%BB%B6%E8%A1%A8%E8%BE%BE%E5%BC%8F
2.11.1 定义https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2111-%E5%AE%9A%E4%B9%89
2.11.2 Proshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2112-pros
2.11.3 Conshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2113-cons
2.11.4 建议https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2114-%E5%BB%BA%E8%AE%AE
2.12 默认参数值https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#212-%E9%BB%98%E8%AE%A4%E5%8F%82%E6%95%B0%E5%80%BC
2.12.1 定义https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2121-%E5%AE%9A%E4%B9%89
2.12.2 Proshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2122-pros
2.12.3 Conshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2123-cons
2.12.4 建议https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2124-%E5%BB%BA%E8%AE%AE
2.13 属性https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#213-%E5%B1%9E%E6%80%A7
2.13.1 定义https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2131-%E5%AE%9A%E4%B9%89
2.13.2 Proshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2132-pros
2.13.3 Conshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2133-cons
2.13.4 建议https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2134-%E5%BB%BA%E8%AE%AE
2.14 True/False表达式https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#214-truefalse%E8%A1%A8%E8%BE%BE%E5%BC%8F
2.14.1 定义https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2141-%E5%AE%9A%E4%B9%89
2.14.2 Proshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2142-pros
2.14.3 Conshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2143-cons
建议https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#%E5%BB%BA%E8%AE%AE-1
2.15 弃用的语言特性https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#215-%E5%BC%83%E7%94%A8%E7%9A%84%E8%AF%AD%E8%A8%80%E7%89%B9%E6%80%A7
2.15.1 定义https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2151-%E5%AE%9A%E4%B9%89
2.15.2 建议https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2152-%E5%BB%BA%E8%AE%AE
2.16 词法作用域https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#216-%E8%AF%8D%E6%B3%95%E4%BD%9C%E7%94%A8%E5%9F%9F
2.16.1 定义https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2161-%E5%AE%9A%E4%B9%89
2.16.2 Proshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2162-pros
2.16.3 Conshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2163-cons
2.16.4 建议https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2164-%E5%BB%BA%E8%AE%AE
2.17 函数和方法装饰器https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#217-%E5%87%BD%E6%95%B0%E5%92%8C%E6%96%B9%E6%B3%95%E8%A3%85%E9%A5%B0%E5%99%A8
2.17.1 定义https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2171-%E5%AE%9A%E4%B9%89
2.17.2 Proshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2172-pros
2.17.3 Conshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2173-cons
2.17.4 建议https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2174-%E5%BB%BA%E8%AE%AE
2.18 线程https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#218-%E7%BA%BF%E7%A8%8B
2.19 过于强大的特性https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#219-%E8%BF%87%E4%BA%8E%E5%BC%BA%E5%A4%A7%E7%9A%84%E7%89%B9%E6%80%A7
2.19.1 定义https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2191-%E5%AE%9A%E4%B9%89
2.19.2 Proshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2192-pros
2.19.3 Conshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2193-cons
2.19.4 定义https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2194-%E5%AE%9A%E4%B9%89
2.20 新版本Python: Python3 和从__future__importhttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#220-%E6%96%B0%E7%89%88%E6%9C%ACpython-python3-%E5%92%8C%E4%BB%8E__future__import
2.20.1 定义https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2201-%E5%AE%9A%E4%B9%89
2.20.2 Proshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2202-pros
2.20.3 Conshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2203-cons
2.20.4 建议https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2204-%E5%BB%BA%E8%AE%AE
2.21 带有类型注释的代码https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#221-%E5%B8%A6%E6%9C%89%E7%B1%BB%E5%9E%8B%E6%B3%A8%E9%87%8A%E7%9A%84%E4%BB%A3%E7%A0%81
2.21.1 定义https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2211-%E5%AE%9A%E4%B9%89
2.21.2 Proshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2212-pros
2.21.3 Conshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2213-cons
2.21.4 建议https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2214-%E5%BB%BA%E8%AE%AE
3 Python代码风格规范https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3-python%E4%BB%A3%E7%A0%81%E9%A3%8E%E6%A0%BC%E8%A7%84%E8%8C%83
3.1 分号https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#31-%E5%88%86%E5%8F%B7
3.2 行长度https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#32-%E8%A1%8C%E9%95%BF%E5%BA%A6
3.3 括号https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#33-%E6%8B%AC%E5%8F%B7
3.4 缩进https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#34-%E7%BC%A9%E8%BF%9B
3.4.1 关于尾后逗号https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#341-%E5%85%B3%E4%BA%8E%E5%B0%BE%E5%90%8E%E9%80%97%E5%8F%B7
3.5 空行https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#35-%E7%A9%BA%E8%A1%8C
3.6 空格https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#36-%E7%A9%BA%E6%A0%BC
3.7 Shebanghttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#37-shebang
3.8 注释和文档字符串https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#38-%E6%B3%A8%E9%87%8A%E5%92%8C%E6%96%87%E6%A1%A3%E5%AD%97%E7%AC%A6%E4%B8%B2
3.8.1 文档字符串https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#381-%E6%96%87%E6%A1%A3%E5%AD%97%E7%AC%A6%E4%B8%B2
3.8.2 模块https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#382-%E6%A8%A1%E5%9D%97
3.8.3 函数和方法https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#383-%E5%87%BD%E6%95%B0%E5%92%8C%E6%96%B9%E6%B3%95
3.8.4 类https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#384-%E7%B1%BB
3.8.5 块注释和行注释https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#385-%E5%9D%97%E6%B3%A8%E9%87%8A%E5%92%8C%E8%A1%8C%E6%B3%A8%E9%87%8A
3.8.6 标点,拼写和语法https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#386-%E6%A0%87%E7%82%B9%E6%8B%BC%E5%86%99%E5%92%8C%E8%AF%AD%E6%B3%95
3.9 类https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#39-%E7%B1%BB
3.10 字符串https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#310-%E5%AD%97%E7%AC%A6%E4%B8%B2
3.11 文件和sockethttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#311-%E6%96%87%E4%BB%B6%E5%92%8Csocket
3.12 TODO注释https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#312--todo%E6%B3%A8%E9%87%8A
3.13 import格式https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#313-import%E6%A0%BC%E5%BC%8F
3.14 语句https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#314-%E8%AF%AD%E5%8F%A5
3.15 访问https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#315-%E8%AE%BF%E9%97%AE
3.16 命名https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#316-%E5%91%BD%E5%90%8D
3.16.1 要避免的名字:https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3161-%E8%A6%81%E9%81%BF%E5%85%8D%E7%9A%84%E5%90%8D%E5%AD%97
3.16.4 命名约定https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3164-%E5%91%BD%E5%90%8D%E7%BA%A6%E5%AE%9A
3.16.3 文件名https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3163-%E6%96%87%E4%BB%B6%E5%90%8D
3.16.4 Guido的指导建议https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3164-guido%E7%9A%84%E6%8C%87%E5%AF%BC%E5%BB%BA%E8%AE%AE
3.17 Mainhttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#317-main
3.18 函数长度https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#318-%E5%87%BD%E6%95%B0%E9%95%BF%E5%BA%A6
3.19 类型注释https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#319-%E7%B1%BB%E5%9E%8B%E6%B3%A8%E9%87%8A
3.19.1 基本规则https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3191-%E5%9F%BA%E6%9C%AC%E8%A7%84%E5%88%99
3.19.2 分行https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3192-%E5%88%86%E8%A1%8C
3.19.3 前置声明https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3193-%E5%89%8D%E7%BD%AE%E5%A3%B0%E6%98%8E
3.19.4 默认值https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3194-%E9%BB%98%E8%AE%A4%E5%80%BC
3.19.5 NoneTypehttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3195-nonetype
3.19.6 类型别名https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3196-%E7%B1%BB%E5%9E%8B%E5%88%AB%E5%90%8D
3.19.7 忽略类型检查https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3197-%E5%BF%BD%E7%95%A5%E7%B1%BB%E5%9E%8B%E6%A3%80%E6%9F%A5
3.19.8 对变量注释类型https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3198-%E5%AF%B9%E5%8F%98%E9%87%8F%E6%B3%A8%E9%87%8A%E7%B1%BB%E5%9E%8B
3.19.9 元组和列表https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3199-%E5%85%83%E7%BB%84%E5%92%8C%E5%88%97%E8%A1%A8
3.19.10 TypeVarshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#31910-typevars
3.19.11 字符串类型https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#31911-%E5%AD%97%E7%AC%A6%E4%B8%B2%E7%B1%BB%E5%9E%8B
3.19.12 typing的importhttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#31912-typing%E7%9A%84import
3.19.13 条件importhttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#31913-%E6%9D%A1%E4%BB%B6import
3.19.14 循环依赖https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#31914-%E5%BE%AA%E7%8E%AF%E4%BE%9D%E8%B5%96
3.19.15 泛型https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#31915--%E6%B3%9B%E5%9E%8B
4 最后的话https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#4-%E6%9C%80%E5%90%8E%E7%9A%84%E8%AF%9D
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#1-背景
Vim的设置文件https://google.github.io/styleguide/google_python_style.vim
yapfhttps://github.com/google/yapf/
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2-python语言规则
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#21-lint
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#211definition以下都译为定义
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#212-pros
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#213-cons
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#214-decision以下都译为建议
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#22-imports
typing_modulehttps://google.github.io/styleguide/pyguide.html#typing-imports
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#221-定义
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#222-pros
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#223-cons
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#224-建议
typing modulehttps://google.github.io/styleguide/pyguide.html#typing-imports
six.moves modulehttps://six.readthedocs.io/#module-six.moves
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#23-包
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#231-pros
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#232-cons
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#233-建议
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#24-异常
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#241-定义
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#242-pros
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#243-cons
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#244-建议
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#25-全局变量
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#251-定义
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#252-pros
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#253-cons
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#254-建议
命名规则https://google.github.io/styleguide/pyguide.html#s3.16-naming
命名规则https://google.github.io/styleguide/pyguide.html#s3.16-naming
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#26-内嵌局部内部-类和函数
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#261-定义
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#262-pros
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#263-cons
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#264-建议
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#27-列表推导和生成器表达式
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#271-定义
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#272-pros
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#273-cons
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#274-建议
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#28-默认迭代器和运算符
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#281-定义
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#pros
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#cons
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#建议
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#29-生成器
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#291-定义
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#292-pros
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#293-cons
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#294-建议
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#210-lambda表达式
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2101-定义
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2102-pros
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2103-cons
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2104-建议
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#211-条件表达式
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2111-定义
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2112-pros
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2113-cons
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2114-建议
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#212-默认参数值
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2121-定义
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2122-pros
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2123-cons
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2124-建议
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#213-属性
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2131-定义
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2132-pros
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2133-cons
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2134-建议
装饰器https://google.github.io/styleguide/pyguide.html#s2.17-function-and-method-decorators
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#214-truefalse表达式
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2141-定义
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2142-pros
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2143-cons
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#建议-1
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#215-弃用的语言特性
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2151-定义
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2152-建议
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#216-词法作用域
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2161-定义
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2162-pros
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2163-cons
PEP-0227http://www.google.com/url?sa=D&q=http://www.python.org/dev/peps/pep-0227/
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2164-建议
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#217-函数和方法装饰器
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2171-定义
函数和方法装饰器https://docs.python.org/3/glossary.html#term-decorator
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2172-pros
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2173-cons
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2174-建议
mainhttps://google.github.io/styleguide/pyguide.html#s3.17-main
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#218-线程
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#219-过于强大的特性
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2191-定义
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2192-pros
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2193-cons
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2194-定义
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#220-新版本python-python3-和从__future__import
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2201-定义
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2202-pros
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2203-cons
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2204-建议
绝对importhttps://www.python.org/dev/peps/pep-0328/
新的/除法行为https://www.python.org/dev/peps/pep-0238/
print函数https://www.python.org/dev/peps/pep-3105/
sixhttps://pypi.org/project/six/
futurehttps://pypi.org/project/future/
pasthttps://pypi.org/project/past/
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#221-带有类型注释的代码
PEP-484https://www.python.org/dev/peps/pep-0484/
pytypehttps://github.com/google/pytype
stub pyi filehttps://www.python.org/dev/peps/pep-0484/#stub-files
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2211-定义
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2212-pros
过于强力特性https://google.github.io/styleguide/pyguide.html#power-features
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2213-cons
类型检查https://github.com/google/pytype
过于强力特性https://google.github.io/styleguide/pyguide.html#power-features
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#2214-建议
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3-python代码风格规范
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#31-分号
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#32-行长度
implicit line joining inside parentheses, brackets and braceshttp://docs.python.org/reference/lexical_analysis.html#implicit-line-joining
缩进https://google.github.io/styleguide/pyguide.html#s3.4-indentation
yapfhttps://github.com/google/yapf/
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#33-括号
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#34-缩进
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#341-关于尾后逗号
yapfhttps://github.com/google/yapf/
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#35-空行
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#36-空格
当类型注释存在时https://google.github.io/styleguide/pyguide.html#typing-default-values
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#37-shebang
PEP-394https://www.google.com/url?sa=D&q=http://www.python.org/dev/peps/pep-0394/
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#38-注释和文档字符串
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#381-文档字符串
PEP-257https://www.google.com/url?sa=D&q=http://www.python.org/dev/peps/pep-0257/
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#382-模块
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#383-函数和方法
attributehttps://google.github.io/styleguide/pyguide.html#384-classes
Args:https://google.github.io/styleguide/pyguide.html#doc-function-args
Returns:(或对于生成器是Yields:)https://google.github.io/styleguide/pyguide.html#doc-function-returns
Raises:https://google.github.io/styleguide/pyguide.html#doc-function-returns
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#384-类
函数的Argshttps://google.github.io/styleguide/pyguide.html#doc-function-args
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#385-块注释和行注释
code reviewhttp://en.wikipedia.org/wiki/Code_review
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#386-标点拼写和语法
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#39-类
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#310-字符串
textwarp.dedent()https://docs.python.org/3/library/textwrap.html#textwrap.dedent
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#311-文件和socket
with语句http://docs.python.org/reference/compound_stmts.html#the-with-statement
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#312--todo注释
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#313-import格式
上文https://google.github.io/styleguide/pyguide.html#from-future-imports
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#314-语句
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#315-访问
命名https://google.github.io/styleguide/pyguide.html#s3.16-naming
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#316-命名
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3161-要避免的名字
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3164-命名约定
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3163-文件名
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3164-guido的指导建议
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#317-main
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#318-函数长度
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#319-类型注释
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3191-基本规则
PEP-484https://www.python.org/dev/peps/pep-0484/
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3192-分行
缩进https://google.github.io/styleguide/pyguide.html#indentation
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3193-前置声明
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3194-默认值
PEP-008https://www.python.org/dev/peps/pep-0008/#other-recommendations
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3195-nonetype
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3196-类型别名
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3197-忽略类型检查
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3198-对变量注释类型
类型注释https://google.github.io/styleguide/pyguide.html#type-comments
注释绑定https://google.github.io/styleguide/pyguide.html#annotated-assignments
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#3199-元组和列表
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#31910-typevars
泛型https://www.python.org/dev/peps/pep-0484/#generics
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#31911-字符串类型
AnyStrhttps://google.github.io/styleguide/pyguide.html#typing-type-var
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#31912-typing的import
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#31913-条件import
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#31914-循环依赖
代码异味https://zh.wikipedia.org/zh-hans/%E4%BB%A3%E7%A0%81%E5%BC%82%E5%91%B3
build systemhttps://google.github.io/styleguide/pyguide.html#typing-build-deps
别名https://google.github.io/styleguide/pyguide.html#typing-aliases
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#31915--泛型
泛型的参数会被认为是Anyhttps://www.python.org/dev/peps/pep-0484/#the-any-type
TypeVarhttps://google.github.io/styleguide/pyguide.html#typing-type-var
https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#4-最后的话
Readme https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN#readme-ov-file
Please reload this pagehttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN
Activityhttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/activity
205 starshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/stargazers
10 watchinghttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/watchers
59 forkshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/forks
Report repository https://patch-diff.githubusercontent.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fshendeguize%2FGooglePythonStyleGuideCN&report=shendeguize+%28user%29
Releaseshttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/releases
Packages 0https://patch-diff.githubusercontent.com/users/shendeguize/packages?repo_name=GooglePythonStyleGuideCN
Contributors 2https://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN/graphs/contributors
Please reload this pagehttps://patch-diff.githubusercontent.com/shendeguize/GooglePythonStyleGuideCN
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.