René's URL Explorer Experiment


Title: GitHub - rea-leaf/wtfpython-cn: wtfpython的中文翻译/施工结束/ 能力有限,欢迎帮我改进翻译

Open Graph Title: GitHub - rea-leaf/wtfpython-cn: wtfpython的中文翻译/施工结束/ 能力有限,欢迎帮我改进翻译

X Title: GitHub - rea-leaf/wtfpython-cn: wtfpython的中文翻译/施工结束/ 能力有限,欢迎帮我改进翻译

Description: wtfpython的中文翻译/施工结束/ 能力有限,欢迎帮我改进翻译. Contribute to rea-leaf/wtfpython-cn development by creating an account on GitHub.

Open Graph Description: wtfpython的中文翻译/施工结束/ 能力有限,欢迎帮我改进翻译. Contribute to rea-leaf/wtfpython-cn development by creating an account on GitHub.

X Description: wtfpython的中文翻译/施工结束/ 能力有限,欢迎帮我改进翻译. Contribute to rea-leaf/wtfpython-cn development by creating an account on GitHub.

Opengraph URL: https://github.com/rea-leaf/wtfpython-cn

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:6933b1b8-fb8f-4a56-1f12-65610c7612a1
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-id9F3A:320F8E:C9E984:115F0D0:696A8CD0
html-safe-nonceab21ba010a4a5db3c1be2623d7d58a5213cf014cdbe1a89b0d31668e236316a5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjNBOjMyMEY4RTpDOUU5ODQ6MTE1RjBEMDo2OTZBOENEMCIsInZpc2l0b3JfaWQiOiI5NzE5MzAwNTk4MDg2MDc0NDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb6a7a75e446cf93417404458f18b59301c9af07de24028aa692ece0eccfa4a3b
hovercard-subject-tagrepository:159917036
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/rea-leaf/wtfpython-cn
twitter:imagehttps://opengraph.githubassets.com/ea33cb8eb8b0ba2f3e0ae9c5a1f5f0b1d72f5411cad1726a3cd14186cc045fc4/rea-leaf/wtfpython-cn
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ea33cb8eb8b0ba2f3e0ae9c5a1f5f0b1d72f5411cad1726a3cd14186cc045fc4/rea-leaf/wtfpython-cn
og:image:altwtfpython的中文翻译/施工结束/ 能力有限,欢迎帮我改进翻译. Contribute to rea-leaf/wtfpython-cn development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned2aa6dedd7d97fa651b17c40401f2605f309df5ca5fb659bf0554cf34f1de825
turbo-cache-controlno-preview
go-importgithub.com/rea-leaf/wtfpython-cn git https://github.com/rea-leaf/wtfpython-cn.git
octolytics-dimension-user_id12878363
octolytics-dimension-user_loginrea-leaf
octolytics-dimension-repository_id159917036
octolytics-dimension-repository_nworea-leaf/wtfpython-cn
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id156967161
octolytics-dimension-repository_parent_nwoleisurelicht/wtfpython-cn
octolytics-dimension-repository_network_root_id156967161
octolytics-dimension-repository_network_root_nwoleisurelicht/wtfpython-cn
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
releasec1dbca8981c5e3d6a69bce2f1d289e732b86241d
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/rea-leaf/wtfpython-cn#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frea-leaf%2Fwtfpython-cn
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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frea-leaf%2Fwtfpython-cn
Sign up https://github.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=rea-leaf%2Fwtfpython-cn
Reloadhttps://github.com/rea-leaf/wtfpython-cn
Reloadhttps://github.com/rea-leaf/wtfpython-cn
Reloadhttps://github.com/rea-leaf/wtfpython-cn
rea-leaf https://github.com/rea-leaf
wtfpython-cnhttps://github.com/rea-leaf/wtfpython-cn
leisurelicht/wtfpython-cnhttps://github.com/leisurelicht/wtfpython-cn
Notifications https://github.com/login?return_to=%2Frea-leaf%2Fwtfpython-cn
Fork 0 https://github.com/login?return_to=%2Frea-leaf%2Fwtfpython-cn
Star 0 https://github.com/login?return_to=%2Frea-leaf%2Fwtfpython-cn
github.com/satwikkansal/wtfpythonhttps://github.com/satwikkansal/wtfpython
0 stars https://github.com/rea-leaf/wtfpython-cn/stargazers
2k forks https://github.com/rea-leaf/wtfpython-cn/forks
Branches https://github.com/rea-leaf/wtfpython-cn/branches
Tags https://github.com/rea-leaf/wtfpython-cn/tags
Activity https://github.com/rea-leaf/wtfpython-cn/activity
Star https://github.com/login?return_to=%2Frea-leaf%2Fwtfpython-cn
Notifications https://github.com/login?return_to=%2Frea-leaf%2Fwtfpython-cn
Code https://github.com/rea-leaf/wtfpython-cn
Pull requests 0 https://github.com/rea-leaf/wtfpython-cn/pulls
Actions https://github.com/rea-leaf/wtfpython-cn/actions
Projects 0 https://github.com/rea-leaf/wtfpython-cn/projects
Wiki https://github.com/rea-leaf/wtfpython-cn/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/rea-leaf/wtfpython-cn/security
Please reload this pagehttps://github.com/rea-leaf/wtfpython-cn
Insights https://github.com/rea-leaf/wtfpython-cn/pulse
Code https://github.com/rea-leaf/wtfpython-cn
Pull requests https://github.com/rea-leaf/wtfpython-cn/pulls
Actions https://github.com/rea-leaf/wtfpython-cn/actions
Projects https://github.com/rea-leaf/wtfpython-cn/projects
Wiki https://github.com/rea-leaf/wtfpython-cn/wiki
Security https://github.com/rea-leaf/wtfpython-cn/security
Insights https://github.com/rea-leaf/wtfpython-cn/pulse
Brancheshttps://github.com/rea-leaf/wtfpython-cn/branches
Tagshttps://github.com/rea-leaf/wtfpython-cn/tags
https://github.com/rea-leaf/wtfpython-cn/branches
https://github.com/rea-leaf/wtfpython-cn/tags
54 Commitshttps://github.com/rea-leaf/wtfpython-cn/commits/master/
https://github.com/rea-leaf/wtfpython-cn/commits/master/
imageshttps://github.com/rea-leaf/wtfpython-cn/tree/master/images
imageshttps://github.com/rea-leaf/wtfpython-cn/tree/master/images
.gitignorehttps://github.com/rea-leaf/wtfpython-cn/blob/master/.gitignore
.gitignorehttps://github.com/rea-leaf/wtfpython-cn/blob/master/.gitignore
CONTRIBUTING.mdhttps://github.com/rea-leaf/wtfpython-cn/blob/master/CONTRIBUTING.md
CONTRIBUTING.mdhttps://github.com/rea-leaf/wtfpython-cn/blob/master/CONTRIBUTING.md
CONTRIBUTORS.mdhttps://github.com/rea-leaf/wtfpython-cn/blob/master/CONTRIBUTORS.md
CONTRIBUTORS.mdhttps://github.com/rea-leaf/wtfpython-cn/blob/master/CONTRIBUTORS.md
README.mdhttps://github.com/rea-leaf/wtfpython-cn/blob/master/README.md
README.mdhttps://github.com/rea-leaf/wtfpython-cn/blob/master/README.md
mixed_tabs_and_spaces.pyhttps://github.com/rea-leaf/wtfpython-cn/blob/master/mixed_tabs_and_spaces.py
mixed_tabs_and_spaces.pyhttps://github.com/rea-leaf/wtfpython-cn/blob/master/mixed_tabs_and_spaces.py
READMEhttps://github.com/rea-leaf/wtfpython-cn
Contributinghttps://github.com/rea-leaf/wtfpython-cn
https://github.com/rea-leaf/wtfpython-cn/blob/master/images/logo.png
https://github.com/rea-leaf/wtfpython-cn#what-the-fck-python-
http://www.wtfpl.net
https://github.com/satwikkansal/wtfpython/commit/145a194c8b138ee0f71593fef63290df601df8fb
这里https://github.com/satwikkansal/wtfpython/releases/
https://github.com/rea-leaf/wtfpython-cn#table-of-contents目录
Table of Contents/目录https://github.com/rea-leaf/wtfpython-cn#table-of-contents%E7%9B%AE%E5%BD%95
Structure of the Examples/示例结构https://github.com/rea-leaf/wtfpython-cn#structure-of-the-examples%E7%A4%BA%E4%BE%8B%E7%BB%93%E6%9E%84
Usage/用法https://github.com/rea-leaf/wtfpython-cn#usage%E7%94%A8%E6%B3%95
👀 Examples/示例https://github.com/rea-leaf/wtfpython-cn#%F0%9F%91%80-examples%E7%A4%BA%E4%BE%8B
Section: Strain your brain!/大脑运动!https://github.com/rea-leaf/wtfpython-cn#section-strain-your-brain%E5%A4%A7%E8%84%91%E8%BF%90%E5%8A%A8
> Strings can be tricky sometimes/微妙的字符串 *https://github.com/rea-leaf/wtfpython-cn#-strings-can-be-tricky-sometimes%E5%BE%AE%E5%A6%99%E7%9A%84%E5%AD%97%E7%AC%A6%E4%B8%B2-
> Time for some hash brownies!/是时候来点蛋糕了!https://github.com/rea-leaf/wtfpython-cn#-time-for-some-hash-brownies%E6%98%AF%E6%97%B6%E5%80%99%E6%9D%A5%E7%82%B9%E8%9B%8B%E7%B3%95%E4%BA%86
> Return return everywhere!/到处返回!https://github.com/rea-leaf/wtfpython-cn#-return-return-everywhere%E5%88%B0%E5%A4%84%E8%BF%94%E5%9B%9E
> Deep down, we're all the same./本质上,我们都一样. *https://github.com/rea-leaf/wtfpython-cn#-deep-down-were-all-the-same%E6%9C%AC%E8%B4%A8%E4%B8%8A%E6%88%91%E4%BB%AC%E9%83%BD%E4%B8%80%E6%A0%B7-
> For what?/为什么?https://github.com/rea-leaf/wtfpython-cn#-for-what%E4%B8%BA%E4%BB%80%E4%B9%88
> Evaluation time discrepancy/评估时间差异https://github.com/rea-leaf/wtfpython-cn#-evaluation-time-discrepancy%E8%AF%84%E4%BC%B0%E6%97%B6%E9%97%B4%E5%B7%AE%E5%BC%82
> is is not what it is!/出人意料的is!https://github.com/rea-leaf/wtfpython-cn#-is-is-not-what-it-is%E5%87%BA%E4%BA%BA%E6%84%8F%E6%96%99%E7%9A%84is
> A tic-tac-toe where X wins in the first attempt!/一蹴即至!https://github.com/rea-leaf/wtfpython-cn#-a-tic-tac-toe-where-x-wins-in-the-first-attempt%E4%B8%80%E8%B9%B4%E5%8D%B3%E8%87%B3
> The sticky output function/麻烦的输出https://github.com/rea-leaf/wtfpython-cn#-the-sticky-output-function%E9%BA%BB%E7%83%A6%E7%9A%84%E8%BE%93%E5%87%BA
> is not ... is not is (not ...)/is not ... 不是 is (not ...)https://github.com/rea-leaf/wtfpython-cn#-is-not--is-not-is-not-is-not--%E4%B8%8D%E6%98%AF-is-not-
> The surprising comma/意外的逗号https://github.com/rea-leaf/wtfpython-cn#-the-surprising-comma%E6%84%8F%E5%A4%96%E7%9A%84%E9%80%97%E5%8F%B7
> Backslashes at the end of string/字符串末尾的反斜杠https://github.com/rea-leaf/wtfpython-cn#-backslashes-at-the-end-of-string%E5%AD%97%E7%AC%A6%E4%B8%B2%E6%9C%AB%E5%B0%BE%E7%9A%84%E5%8F%8D%E6%96%9C%E6%9D%A0
> not knot!/别纠结!https://github.com/rea-leaf/wtfpython-cn#-not-knot%E5%88%AB%E7%BA%A0%E7%BB%93
> Half triple-quoted strings/三个引号https://github.com/rea-leaf/wtfpython-cn#-half-triple-quoted-strings%E4%B8%89%E4%B8%AA%E5%BC%95%E5%8F%B7
> Midnight time doesn't exist?/不存在的午夜?https://github.com/rea-leaf/wtfpython-cn#-midnight-time-doesnt-exist%E4%B8%8D%E5%AD%98%E5%9C%A8%E7%9A%84%E5%8D%88%E5%A4%9C
> What's wrong with booleans?/布尔你咋了?https://github.com/rea-leaf/wtfpython-cn#-whats-wrong-with-booleans%E5%B8%83%E5%B0%94%E4%BD%A0%E5%92%8B%E4%BA%86
> Class attributes and instance attributes/类属性和实例属性https://github.com/rea-leaf/wtfpython-cn#-class-attributes-and-instance-attributes%E7%B1%BB%E5%B1%9E%E6%80%A7%E5%92%8C%E5%AE%9E%E4%BE%8B%E5%B1%9E%E6%80%A7
> yielding None/生成 Nonehttps://github.com/rea-leaf/wtfpython-cn#-yielding-none%E7%94%9F%E6%88%90-none
> Mutating the immutable!/强人所难https://github.com/rea-leaf/wtfpython-cn#-mutating-the-immutable%E5%BC%BA%E4%BA%BA%E6%89%80%E9%9A%BE
> The disappearing variable from outer scope/消失的外部变量https://github.com/rea-leaf/wtfpython-cn#-the-disappearing-variable-from-outer-scope%E6%B6%88%E5%A4%B1%E7%9A%84%E5%A4%96%E9%83%A8%E5%8F%98%E9%87%8F
> When True is actually False/真亦假https://github.com/rea-leaf/wtfpython-cn#-when-true-is-actually-false%E7%9C%9F%E4%BA%A6%E5%81%87
> From filled to None in one instruction.../从有到无...https://github.com/rea-leaf/wtfpython-cn#-from-filled-to-none-in-one-instruction%E4%BB%8E%E6%9C%89%E5%88%B0%E6%97%A0
> Subclass relationships/子类关系 *https://github.com/rea-leaf/wtfpython-cn#-subclass-relationships%E5%AD%90%E7%B1%BB%E5%85%B3%E7%B3%BB-
> The mysterious key type conversion/神秘的键型转换 *https://github.com/rea-leaf/wtfpython-cn#-the-mysterious-key-type-conversion%E7%A5%9E%E7%A7%98%E7%9A%84%E9%94%AE%E5%9E%8B%E8%BD%AC%E6%8D%A2-
> Let's see if you can guess this?/看看你能否猜到这一点?https://github.com/rea-leaf/wtfpython-cn#-lets-see-if-you-can-guess-this%E7%9C%8B%E7%9C%8B%E4%BD%A0%E8%83%BD%E5%90%A6%E7%8C%9C%E5%88%B0%E8%BF%99%E4%B8%80%E7%82%B9
Section: Appearances are deceptive!/外表是靠不住的!https://github.com/rea-leaf/wtfpython-cn#section-appearances-are-deceptive%E5%A4%96%E8%A1%A8%E6%98%AF%E9%9D%A0%E4%B8%8D%E4%BD%8F%E7%9A%84
> Skipping lines?/跳过一行?https://github.com/rea-leaf/wtfpython-cn#-skipping-lines%E8%B7%B3%E8%BF%87%E4%B8%80%E8%A1%8C
> Teleportation/空间移动 *https://github.com/rea-leaf/wtfpython-cn#-teleportation%E7%A9%BA%E9%97%B4%E7%A7%BB%E5%8A%A8-
> Well, something is fishy.../嗯, 有些可疑...https://github.com/rea-leaf/wtfpython-cn#-well-something-is-fishy%E5%97%AF%E6%9C%89%E4%BA%9B%E5%8F%AF%E7%96%91
Section: Watch out for the landmines!/小心地雷!https://github.com/rea-leaf/wtfpython-cn#section-watch-out-for-the-landmines%E5%B0%8F%E5%BF%83%E5%9C%B0%E9%9B%B7
> Modifying a dictionary while iterating over it/迭代字典时的修改https://github.com/rea-leaf/wtfpython-cn#-modifying-a-dictionary-while-iterating-over-it%E8%BF%AD%E4%BB%A3%E5%AD%97%E5%85%B8%E6%97%B6%E7%9A%84%E4%BF%AE%E6%94%B9
> Stubborn del operator/坚强的 del *https://github.com/rea-leaf/wtfpython-cn#-stubborn-del-operator%E5%9D%9A%E5%BC%BA%E7%9A%84-del-
> Deleting a list item while iterating/迭代列表时删除元素https://github.com/rea-leaf/wtfpython-cn#-deleting-a-list-item-while-iterating%E8%BF%AD%E4%BB%A3%E5%88%97%E8%A1%A8%E6%97%B6%E5%88%A0%E9%99%A4%E5%85%83%E7%B4%A0
> Loop variables leaking out!/循环变量泄漏!https://github.com/rea-leaf/wtfpython-cn#-loop-variables-leaking-out%E5%BE%AA%E7%8E%AF%E5%8F%98%E9%87%8F%E6%B3%84%E6%BC%8F
> Beware of default mutable arguments!/当心默认的可变参数!https://github.com/rea-leaf/wtfpython-cn#-beware-of-default-mutable-arguments%E5%BD%93%E5%BF%83%E9%BB%98%E8%AE%A4%E7%9A%84%E5%8F%AF%E5%8F%98%E5%8F%82%E6%95%B0
> Catching the Exceptions/捕获异常https://github.com/rea-leaf/wtfpython-cn#-catching-the-exceptions%E6%8D%95%E8%8E%B7%E5%BC%82%E5%B8%B8
> Same operands, different story!/同人不同命!https://github.com/rea-leaf/wtfpython-cn#-same-operands-different-story%E5%90%8C%E4%BA%BA%E4%B8%8D%E5%90%8C%E5%91%BD
> The out of scope variable/外部作用域变量https://github.com/rea-leaf/wtfpython-cn#-the-out-of-scope-variable%E5%A4%96%E9%83%A8%E4%BD%9C%E7%94%A8%E5%9F%9F%E5%8F%98%E9%87%8F
> Be careful with chained operations/小心链式操作https://github.com/rea-leaf/wtfpython-cn#-be-careful-with-chained-operations%E5%B0%8F%E5%BF%83%E9%93%BE%E5%BC%8F%E6%93%8D%E4%BD%9C
> Name resolution ignoring class scope/忽略类作用域的名称解析https://github.com/rea-leaf/wtfpython-cn#-name-resolution-ignoring-class-scope%E5%BF%BD%E7%95%A5%E7%B1%BB%E4%BD%9C%E7%94%A8%E5%9F%9F%E7%9A%84%E5%90%8D%E7%A7%B0%E8%A7%A3%E6%9E%90
> Needle in a Haystack/大海捞针https://github.com/rea-leaf/wtfpython-cn#-needle-in-a-haystack%E5%A4%A7%E6%B5%B7%E6%8D%9E%E9%92%88
Section: The Hidden treasures!/隐藏的宝藏!https://github.com/rea-leaf/wtfpython-cn#section-the-hidden-treasures%E9%9A%90%E8%97%8F%E7%9A%84%E5%AE%9D%E8%97%8F
> Okay Python, Can you make me fly?/Python, 可否带我飞? *https://github.com/rea-leaf/wtfpython-cn#-okay-python-can-you-make-me-flypython-%E5%8F%AF%E5%90%A6%E5%B8%A6%E6%88%91%E9%A3%9E-
> goto, but why?/goto, 但为什么? *https://github.com/rea-leaf/wtfpython-cn#-goto-but-whygoto-%E4%BD%86%E4%B8%BA%E4%BB%80%E4%B9%88-
> Brace yourself!/做好思想准备 *https://github.com/rea-leaf/wtfpython-cn#-brace-yourself%E5%81%9A%E5%A5%BD%E6%80%9D%E6%83%B3%E5%87%86%E5%A4%87-
> Let's meet Friendly Language Uncle For Life/让生活更友好 *https://github.com/rea-leaf/wtfpython-cn#-lets-meet-friendly-language-uncle-for-life%E8%AE%A9%E7%94%9F%E6%B4%BB%E6%9B%B4%E5%8F%8B%E5%A5%BD-
> Even Python understands that love is complicated/连Python也知道爱是难言的 *https://github.com/rea-leaf/wtfpython-cn#-even-python-understands-that-love-is-complicated%E8%BF%9EPython%E4%B9%9F%E7%9F%A5%E9%81%93%E7%88%B1%E6%98%AF%E9%9A%BE%E8%A8%80%E7%9A%84-
> Yes, it exists!/是的, 它存在!https://github.com/rea-leaf/wtfpython-cn#-yes-it-exists%E6%98%AF%E7%9A%84-%E5%AE%83%E5%AD%98%E5%9C%A8
> Inpinity/无限 *https://github.com/rea-leaf/wtfpython-cn#-inpinity%E6%97%A0%E9%99%90-
> Mangling time!修饰时间! *https://github.com/rea-leaf/wtfpython-cn#-mangling-time%E4%BF%AE%E9%A5%B0%E6%97%B6%E9%97%B4-
Section: Miscellaneous/杂项https://github.com/rea-leaf/wtfpython-cn#section-miscellaneous%E6%9D%82%E9%A1%B9
> += is faster/更快的 += https://github.com/rea-leaf/wtfpython-cn#--is-faster%E6%9B%B4%E5%BF%AB%E7%9A%84-
> Let's make a giant string!/来做个巨大的字符串吧!https://github.com/rea-leaf/wtfpython-cn#-lets-make-a-giant-string%E6%9D%A5%E5%81%9A%E4%B8%AA%E5%B7%A8%E5%A4%A7%E7%9A%84%E5%AD%97%E7%AC%A6%E4%B8%B2%E5%90%A7
> Explicit typecast of strings/字符串的显式类型转换https://github.com/rea-leaf/wtfpython-cn#-explicit-typecast-of-strings%E5%AD%97%E7%AC%A6%E4%B8%B2%E7%9A%84%E6%98%BE%E5%BC%8F%E7%B1%BB%E5%9E%8B%E8%BD%AC%E6%8D%A2
> Minor Ones/小知识点https://github.com/rea-leaf/wtfpython-cn#-minor-ones%E5%B0%8F%E7%9F%A5%E8%AF%86%E7%82%B9
Contributing/贡献https://github.com/rea-leaf/wtfpython-cn#contributing%E8%B4%A1%E7%8C%AE
Acknowledgements/致谢https://github.com/rea-leaf/wtfpython-cn#acknowledgements/%E8%87%B4%E8%B0%A2
🎓 License/许可https://github.com/rea-leaf/wtfpython-cn#%F0%9F%8E%93-license%E8%AE%B8%E5%8F%AF
Help/帮助https://github.com/rea-leaf/wtfpython-cn#help%E5%B8%AE%E5%8A%A9
Want to surprise your geeky pythonist friends?/想给你的极客朋友一个惊喜?https://github.com/rea-leaf/wtfpython-cn#want-to-surprise-your-geeky-pythonist-friends%E6%83%B3%E7%BB%99%E4%BD%A0%E7%9A%84%E6%9E%81%E5%AE%A2%E6%9C%8B%E5%8F%8B%E4%B8%80%E4%B8%AA%E6%83%8A%E5%96%9C
Need a pdf version?/需要来一份pdf版的?https://github.com/rea-leaf/wtfpython-cn#need-a-pdf-version%E9%9C%80%E8%A6%81%E6%9D%A5%E4%B8%80%E4%BB%BDpdf%E7%89%88%E7%9A%84
Follow Commit/追踪Commithttps://github.com/rea-leaf/wtfpython-cn#follow-commit%E8%BF%BD%E8%B8%AACommit
https://github.com/rea-leaf/wtfpython-cn#structure-of-the-examples示例结构
https://github.com/rea-leaf/wtfpython-cn#-一个精选的标题-
https://github.com/rea-leaf/wtfpython-cn#-说明
https://github.com/rea-leaf/wtfpython-cn#usage用法
https://github.com/satwikkansal/wtfPython
wtfpythonhttps://www.npmjs.com/package/wtfpython
wtfpythonhttps://pypi.python.org/pypi/wtfpython
https://github.com/rea-leaf/wtfpython-cn#-examples示例
https://github.com/rea-leaf/wtfpython-cn#section-strain-your-brain大脑运动
https://github.com/rea-leaf/wtfpython-cn#-strings-can-be-tricky-sometimes微妙的字符串-
https://github.com/rea-leaf/wtfpython-cn#-说明-1
这里https://github.com/python/cpython/blob/3.6/Objects/codeobject.c#L19
https://github.com/rea-leaf/wtfpython-cn/blob/master/images/string-intern/string_intern.png
窥孔优化(peephole optimization)https://en.wikipedia.org/wiki/Peephole_optimization
这里https://github.com/python/cpython/blob/3.6/Python/peephole.c#L288
https://github.com/rea-leaf/wtfpython-cn#-time-for-some-hash-brownies是时候来点蛋糕了
https://github.com/rea-leaf/wtfpython-cn#-说明-2
回答https://stackoverflow.com/a/32211042/4354153
https://github.com/rea-leaf/wtfpython-cn#-return-return-everywhere到处返回
https://github.com/rea-leaf/wtfpython-cn#-说明-3
https://github.com/rea-leaf/wtfpython-cn#-deep-down-were-all-the-same本质上我们都一样-
https://github.com/rea-leaf/wtfpython-cn#-说明-4
https://github.com/rea-leaf/wtfpython-cn#-for-what为什么
https://github.com/rea-leaf/wtfpython-cn#-说明-5
Python 语法https://docs.python.org/3/reference/grammar.html
https://github.com/rea-leaf/wtfpython-cn#-evaluation-time-discrepancy评估时间差异
https://github.com/rea-leaf/wtfpython-cn#-说明-6
生成器https://wiki.python.org/moin/Generators
https://github.com/rea-leaf/wtfpython-cn#-is-is-not-what-it-is出人意料的is
https://github.com/rea-leaf/wtfpython-cn#-说明-7
https://docs.python.org/3/c-api/long.htmlhttps://docs.python.org/3/c-api/long.html
https://github.com/rea-leaf/wtfpython-cn#-a-tic-tac-toe-where-x-wins-in-the-first-attempt一蹴即至
https://github.com/rea-leaf/wtfpython-cn#-说明-8
https://github.com/rea-leaf/wtfpython-cn/blob/master/images/tic-tac-toe/after_row_initialized.png
https://github.com/rea-leaf/wtfpython-cn/blob/master/images/tic-tac-toe/after_board_initialized.png
这个https://github.com/satwikkansal/wtfpython/issues/68
https://github.com/rea-leaf/wtfpython-cn#-the-sticky-output-function麻烦的输出
https://github.com/rea-leaf/wtfpython-cn#-说明-9
https://github.com/rea-leaf/wtfpython-cn#-is-not--is-not-is-not-is-not--不是-is-not-
https://github.com/rea-leaf/wtfpython-cn#-说明-10
https://github.com/rea-leaf/wtfpython-cn#-the-surprising-comma意外的逗号
https://github.com/rea-leaf/wtfpython-cn#-说明-11
修复https://bugs.python.org/issue9232
帖子https://bugs.python.org/issue9232#msg248399
https://github.com/rea-leaf/wtfpython-cn#-backslashes-at-the-end-of-string字符串末尾的反斜杠
https://github.com/rea-leaf/wtfpython-cn#-说明-12
https://github.com/rea-leaf/wtfpython-cn#-not-knot别纠结
https://github.com/rea-leaf/wtfpython-cn#-说明-13
https://github.com/rea-leaf/wtfpython-cn#-half-triple-quoted-strings三个引号
https://github.com/rea-leaf/wtfpython-cn#-说明-14
字符串链接https://docs.python.org/2/reference/lexical_analysis.html#string-literal-concatenation
https://github.com/rea-leaf/wtfpython-cn#-midnight-time-doesnt-exist不存在的午夜
https://github.com/rea-leaf/wtfpython-cn#-说明-15
https://github.com/rea-leaf/wtfpython-cn#-whats-wrong-with-booleans布尔你咋了
https://github.com/rea-leaf/wtfpython-cn#-说明-16
回答https://stackoverflow.com/a/8169049/4354153
https://github.com/rea-leaf/wtfpython-cn#-class-attributes-and-instance-attributes类属性和实例属性
https://github.com/rea-leaf/wtfpython-cn#-说明-17
https://github.com/rea-leaf/wtfpython-cn#-yielding-none生成-none
https://github.com/rea-leaf/wtfpython-cn#-说明-18
https://stackoverflow.com/questions/32139885/yield-in-list-comprehensions-and-generator-expressionshttps://stackoverflow.com/questions/32139885/yield-in-list-comprehensions-and-generator-expressions
http://bugs.python.org/issue10544http://bugs.python.org/issue10544
https://github.com/rea-leaf/wtfpython-cn#-mutating-the-immutable强人所难
https://github.com/rea-leaf/wtfpython-cn#-说明-19
https://docs.python.org/2/reference/datamodel.htmlhttps://docs.python.org/2/reference/datamodel.html
这里https://segmentfault.com/a/1190000010767068
https://github.com/rea-leaf/wtfpython-cn#-the-disappearing-variable-from-outer-scope消失的外部变量
https://github.com/rea-leaf/wtfpython-cn#-说明-20
https://docs.python.org/3/reference/compound_stmts.html#excepthttps://docs.python.org/3/reference/compound_stmts.html#except
https://github.com/rea-leaf/wtfpython-cn#-when-true-is-actually-false真亦假
https://github.com/rea-leaf/wtfpython-cn#-说明-21
https://github.com/rea-leaf/wtfpython-cn#-from-filled-to-none-in-one-instruction从有到无
https://github.com/rea-leaf/wtfpython-cn#-说明-22
这里http://docs.python.org/2/faq/design.html#why-doesn-t-list-sort-return-the-sorted-list
https://github.com/rea-leaf/wtfpython-cn#-subclass-relationships子类关系-
https://github.com/rea-leaf/wtfpython-cn#-说明-23
这里https://www.naftaliharris.com/blog/python-subclass-intransitivity/
https://github.com/rea-leaf/wtfpython-cn#-the-mysterious-key-type-conversion神秘的键型转换-
https://github.com/rea-leaf/wtfpython-cn#-说明-24
https://github.com/rea-leaf/wtfpython-cn#-lets-see-if-you-can-guess-this看看你能否猜到这一点
https://github.com/rea-leaf/wtfpython-cn#-说明-25
Python 语言参考https://docs.python.org/2/reference/simple_stmts.html#assignment-statements
https://github.com/rea-leaf/wtfpython-cn#section-appearances-are-deceptive外表是靠不住的
https://github.com/rea-leaf/wtfpython-cn#-skipping-lines跳过一行
https://github.com/rea-leaf/wtfpython-cn#-说明-26
代码点https://en.wikipedia.org/wiki/Code_point
https://github.com/rea-leaf/wtfpython-cn#-teleportation空间移动-
https://github.com/rea-leaf/wtfpython-cn#-说明-27
https://github.com/rea-leaf/wtfpython-cn#-well-something-is-fishy嗯有些可疑
mixed_tabs_and_spaces.pyhttps://github.com/rea-leaf/wtfpython-cn/blob/master/mixed_tabs_and_spaces.py
https://github.com/rea-leaf/wtfpython-cn#-说明-28
https://github.com/rea-leaf/wtfpython-cn#section-watch-out-for-the-landmines小心地雷
https://github.com/rea-leaf/wtfpython-cn#-modifying-a-dictionary-while-iterating-over-it迭代字典时的修改
https://github.com/rea-leaf/wtfpython-cn#-说明-29
5https://github.com/python/cpython/blob/v3.6.1/Objects/dictobject.c#L103-L110
回答https://stackoverflow.com/questions/44763802/bug-in-python-dict
https://github.com/rea-leaf/wtfpython-cn#-stubborn-del-operator坚强的-del-
https://github.com/rea-leaf/wtfpython-cn#-说明-30
这里https://www.cnblogs.com/leisurelylicht/p/diao-pi-de-kong-zhi-tai.html
https://github.com/rea-leaf/wtfpython-cn#-deleting-a-list-item-while-iterating迭代列表时删除元素
https://github.com/rea-leaf/wtfpython-cn#-说明-31
回答https://stackoverflow.com/questions/45946228/what-happens-when-you-try-to-delete-a-list-element-while-iterating-over-it
回答https://stackoverflow.com/questions/45877614/how-to-change-all-the-dictionary-keys-in-a-for-loop-with-d-items
https://github.com/rea-leaf/wtfpython-cn#-loop-variables-leaking-out循环变量泄漏
https://github.com/rea-leaf/wtfpython-cn#-说明-32
What’s New In Python 3.0https://docs.python.org/3/whatsnew/3.0.html
https://github.com/rea-leaf/wtfpython-cn#-beware-of-default-mutable-arguments当心默认的可变参数
https://github.com/rea-leaf/wtfpython-cn#-说明-33
https://github.com/rea-leaf/wtfpython-cn#-catching-the-exceptions捕获异常
https://github.com/rea-leaf/wtfpython-cn#-说明-34
https://github.com/rea-leaf/wtfpython-cn#-same-operands-different-story同人不同命
https://github.com/rea-leaf/wtfpython-cn#-说明-35
https://github.com/rea-leaf/wtfpython-cn#-the-out-of-scope-variable外部作用域变量
https://github.com/rea-leaf/wtfpython-cn#-说明-36
这个http://sebastianraschka.com/Articles/2014_python_scope_and_namespaces.html
https://github.com/rea-leaf/wtfpython-cn#-be-careful-with-chained-operations小心链式操作
https://github.com/rea-leaf/wtfpython-cn#-说明-37
https://docs.python.org/2/reference/expressions.html#not-inhttps://docs.python.org/2/reference/expressions.html#not-in
https://github.com/rea-leaf/wtfpython-cn#-name-resolution-ignoring-class-scope忽略类作用域的名称解析
https://github.com/rea-leaf/wtfpython-cn#-说明-38
https://github.com/rea-leaf/wtfpython-cn#-needle-in-a-haystack大海捞针
https://github.com/rea-leaf/wtfpython-cn#-说明-39
https://github.com/rea-leaf/wtfpython-cn#section-the-hidden-treasures隐藏的宝藏
https://github.com/rea-leaf/wtfpython-cn#-okay-python-can-you-make-me-flypython-可否带我飞-
https://github.com/rea-leaf/wtfpython-cn#-说明-40
经典 XKCD 漫画http://xkcd.com/353/
代码https://github.com/python/cpython/blob/master/Lib/antigravity.py#L7-L17
XKCD's geohashing 算法https://xkcd.com/426/
https://github.com/rea-leaf/wtfpython-cn#-goto-but-whygoto-但为什么-
https://github.com/rea-leaf/wtfpython-cn#-说明-41
宣布https://mail.python.org/pipermail/python-announce-list/2004-April/002982.html
原因https://docs.python.org/3/faq/design.html#why-is-there-no-goto
https://github.com/rea-leaf/wtfpython-cn#-brace-yourself做好思想准备-
https://github.com/rea-leaf/wtfpython-cn#-说明-42
https://github.com/rea-leaf/wtfpython-cn#-lets-meet-friendly-language-uncle-for-life让生活更友好-
https://github.com/rea-leaf/wtfpython-cn#-说明-43
PEP-401https://www.python.org/dev/peps/pep-0401/
这里https://www.python.org/dev/peps/pep-0401/
https://github.com/rea-leaf/wtfpython-cn#-even-python-understands-that-love-is-complicated连python也知道爱是难言的-
https://github.com/rea-leaf/wtfpython-cn#-说明-44
PEP 20https://www.python.org/dev/peps/pep-0020
this.pyhttps://hg.python.org/cpython/file/c3896275c0f6/Lib/this.py
https://github.com/rea-leaf/wtfpython-cn#-yes-it-exists是的-它存在
https://github.com/rea-leaf/wtfpython-cn#-说明-45
https://github.com/rea-leaf/wtfpython-cn#-inpinity无限-
https://github.com/rea-leaf/wtfpython-cn#-说明-46
https://github.com/rea-leaf/wtfpython-cn#-mangling-time修饰时间-
https://github.com/rea-leaf/wtfpython-cn#-说明-47
名字修饰https://en.wikipedia.org/wiki/Name_mangling
https://github.com/rea-leaf/wtfpython-cn#section-miscellaneous杂项
https://github.com/rea-leaf/wtfpython-cn#--is-faster更快的-
https://github.com/rea-leaf/wtfpython-cn#-说明-48
https://github.com/rea-leaf/wtfpython-cn#-lets-make-a-giant-string来做个巨大的字符串吧
https://github.com/rea-leaf/wtfpython-cn#-说明-49
timeithttps://docs.python.org/3/library/timeit.html
https://github.com/rea-leaf/wtfpython-cn#-explicit-typecast-of-strings字符串的显式类型转换
https://github.com/rea-leaf/wtfpython-cn#-说明-50
https://github.com/rea-leaf/wtfpython-cn#-minor-ones小知识点
序列https://docs.python.org/3/glossary.html#term-sequence
回答https://stackoverflow.com/questions/3654830/why-are-there-no-and-operators-in-python
全局解释锁https://wiki.python.org/moin/GlobalInterpreterLock
multiprocessinghttps://docs.python.org/2/library/multiprocessing.html
有趣故事http://chris.improbable.org/2014/8/25/adventures-in-unicode-digits/
https://github.com/rea-leaf/wtfpython-cn#contributing贡献
CONTRIBUTING.mdhttps://github.com/satwikkansal/wtfpython/blob/master/CONTRIBUTING.md
issuehttps://github.com/satwikkansal/wtfpython/issues/new
Gitterhttps://gitter.im/wtfpython/Lobby
这里https://github.com/leisurelicht/wtfpython-cn/blob/master/CONTRIBUTING.md
https://github.com/rea-leaf/wtfpython-cn#acknowledgements致谢
wtfjshttps://github.com/denysdovhan/wtfjs
https://github.com/rea-leaf/wtfpython-cn#some-nice-links一些不错的资源
https://www.youtube.com/watch?v=sH4XF6pKKmkhttps://www.youtube.com/watch?v=sH4XF6pKKmk
https://www.reddit.com/r/Python/comments/3cu6ej/what_are_some_wtf_things_about_pythonhttps://www.reddit.com/r/Python/comments/3cu6ej/what_are_some_wtf_things_about_python
https://sopython.com/wiki/Common_Gotchas_In_Pythonhttps://sopython.com/wiki/Common_Gotchas_In_Python
https://stackoverflow.com/questions/530530/python-2-x-gotchas-and-landmineshttps://stackoverflow.com/questions/530530/python-2-x-gotchas-and-landmines
https://stackoverflow.com/questions/1011431/common-pitfalls-in-pythonhttps://stackoverflow.com/questions/1011431/common-pitfalls-in-python
https://www.python.org/doc/humor/https://www.python.org/doc/humor/
https://www.satwikkansal.xyz/archives/posts/python/My-Python-archives/https://www.satwikkansal.xyz/archives/posts/python/My-Python-archives/
https://github.com/rea-leaf/wtfpython-cn#-license许可
http://www.wtfpl.net
Satwik Kansalhttps://satwikkansal.xyz
https://github.com/rea-leaf/wtfpython-cn#help帮助
https://github.com/rea-leaf/wtfpython-cn#want-to-surprise-your-geeky-pythonist-friends想给你的极客朋友一个惊喜
Twitterhttps://twitter.com/intent/tweet?url=https://github.com/satwikkansal/wtfpython&hastags=python,wtfpython
Linkedinhttps://www.linkedin.com/shareArticle?url=https://github.com/satwikkansal&title=What%20the%20f*ck%20Python!&summary=An%20interesting%20collection%20of%20subtle%20and%20tricky%20Python%20snippets.
https://github.com/rea-leaf/wtfpython-cn#need-a-pdf-version需要来一份pdf版的
https://satwikkansal.xyz/wtfpython-pdf/
https://github.com/rea-leaf/wtfpython-cn#follow-commit追踪commit
https://github.com/satwikkansal/wtfpython/commit/145a194c8b138ee0f71593fef63290df601df8fb
github.com/satwikkansal/wtfpythonhttps://github.com/satwikkansal/wtfpython
Readme https://github.com/rea-leaf/wtfpython-cn#readme-ov-file
Contributing https://github.com/rea-leaf/wtfpython-cn#contributing-ov-file
Please reload this pagehttps://github.com/rea-leaf/wtfpython-cn
Activityhttps://github.com/rea-leaf/wtfpython-cn/activity
0 starshttps://github.com/rea-leaf/wtfpython-cn/stargazers
1 watchinghttps://github.com/rea-leaf/wtfpython-cn/watchers
0 forkshttps://github.com/rea-leaf/wtfpython-cn/forks
Report repository https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Frea-leaf%2Fwtfpython-cn&report=rea-leaf+%28user%29
Releaseshttps://github.com/rea-leaf/wtfpython-cn/releases
Packages 0https://github.com/users/rea-leaf/packages?repo_name=wtfpython-cn
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.