René's URL Explorer Experiment


Title: GitHub - anynya/magic-python: Python 黑魔法手册 · GitHub

Open Graph Title: GitHub - anynya/magic-python: Python 黑魔法手册

X Title: GitHub - anynya/magic-python: Python 黑魔法手册

Description: Python 黑魔法手册. Contribute to anynya/magic-python development by creating an account on GitHub.

Open Graph Description: Python 黑魔法手册. Contribute to anynya/magic-python development by creating an account on GitHub.

X Description: Python 黑魔法手册. Contribute to anynya/magic-python development by creating an account on GitHub.

Opengraph URL: https://github.com/anynya/magic-python

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:eee27f21-36d0-b252-3a4c-0892f09993ec
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-id9A82:514B7:1BC83CA:28B89B0:6A60B427
html-safe-noncef9bbf0752cc2b65e8a32029800c65c8bbecf7554989ab9f7000ce805ce0a43e8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTgyOjUxNEI3OjFCQzgzQ0E6MjhCODlCMDo2QTYwQjQyNyIsInZpc2l0b3JfaWQiOiI0NTQzMzcyMzQwNTc2MTcxMDQ3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac923ecc986e69a4bd2131235b12f8d74e39cce83fc5d5770f1e575513c43dac6a
hovercard-subject-tagrepository:287149613
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/anynya/magic-python
twitter:imagehttps://opengraph.githubassets.com/d68dbffc74fea178b25c58850a2c5cfa3da80916564f70acb5bea810f7a21611/anynya/magic-python
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d68dbffc74fea178b25c58850a2c5cfa3da80916564f70acb5bea810f7a21611/anynya/magic-python
og:image:altPython 黑魔法手册. Contribute to anynya/magic-python development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None35671f8a6946a7a2a81d51ae49f5465bdc5f925c23c9cb839206b24345dbe8d9
turbo-cache-controlno-cache
go-importgithub.com/anynya/magic-python git https://github.com/anynya/magic-python.git
octolytics-dimension-user_id39265154
octolytics-dimension-user_loginanynya
octolytics-dimension-repository_id287149613
octolytics-dimension-repository_nwoanynya/magic-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id262793810
octolytics-dimension-repository_parent_nwoiswbm/magic-python
octolytics-dimension-repository_network_root_id262793810
octolytics-dimension-repository_network_root_nwoiswbm/magic-python
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
release746dc49090e6e3995bb502dce0f8807393e36eda
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/anynya/magic-python#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fanynya%2Fmagic-python
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2Fanynya%2Fmagic-python
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=anynya%2Fmagic-python
Reloadhttps://github.com/anynya/magic-python
Reloadhttps://github.com/anynya/magic-python
Reloadhttps://github.com/anynya/magic-python
anynya https://github.com/anynya
magic-pythonhttps://github.com/anynya/magic-python
iswbm/magic-pythonhttps://github.com/iswbm/magic-python
Notifications https://github.com/login?return_to=%2Fanynya%2Fmagic-python
Fork 0 https://github.com/login?return_to=%2Fanynya%2Fmagic-python
Star 0 https://github.com/login?return_to=%2Fanynya%2Fmagic-python
Code https://github.com/anynya/magic-python
Pull requests 0 https://github.com/anynya/magic-python/pulls
Actions https://github.com/anynya/magic-python/actions
Projects https://github.com/anynya/magic-python/projects
Security and quality 0 https://github.com/anynya/magic-python/security
Insights https://github.com/anynya/magic-python/pulse
Code https://github.com/anynya/magic-python
Pull requests https://github.com/anynya/magic-python/pulls
Actions https://github.com/anynya/magic-python/actions
Projects https://github.com/anynya/magic-python/projects
Security and quality https://github.com/anynya/magic-python/security
Insights https://github.com/anynya/magic-python/pulse
https://github.com/anynya/magic-python
Brancheshttps://github.com/anynya/magic-python/branches
Tagshttps://github.com/anynya/magic-python/tags
https://github.com/anynya/magic-python/branches
https://github.com/anynya/magic-python/tags
36 Commitshttps://github.com/anynya/magic-python/commits/master/
https://github.com/anynya/magic-python/commits/master/
buildhttps://github.com/anynya/magic-python/tree/master/build
buildhttps://github.com/anynya/magic-python/tree/master/build
extshttps://github.com/anynya/magic-python/tree/master/exts
extshttps://github.com/anynya/magic-python/tree/master/exts
sourcehttps://github.com/anynya/magic-python/tree/master/source
sourcehttps://github.com/anynya/magic-python/tree/master/source
.gitignorehttps://github.com/anynya/magic-python/blob/master/.gitignore
.gitignorehttps://github.com/anynya/magic-python/blob/master/.gitignore
README.mdhttps://github.com/anynya/magic-python/blob/master/README.md
README.mdhttps://github.com/anynya/magic-python/blob/master/README.md
github-toc-maker-for-sphinx.pyhttps://github.com/anynya/magic-python/blob/master/github-toc-maker-for-sphinx.py
github-toc-maker-for-sphinx.pyhttps://github.com/anynya/magic-python/blob/master/github-toc-maker-for-sphinx.py
make.bathttps://github.com/anynya/magic-python/blob/master/make.bat
make.bathttps://github.com/anynya/magic-python/blob/master/make.bat
md2rst.pyhttps://github.com/anynya/magic-python/blob/master/md2rst.py
md2rst.pyhttps://github.com/anynya/magic-python/blob/master/md2rst.py
requirements.txthttps://github.com/anynya/magic-python/blob/master/requirements.txt
requirements.txthttps://github.com/anynya/magic-python/blob/master/requirements.txt
usercustomize.pyhttps://github.com/anynya/magic-python/blob/master/usercustomize.py
usercustomize.pyhttps://github.com/anynya/magic-python/blob/master/usercustomize.py
READMEhttps://github.com/anynya/magic-python
https://camo.githubusercontent.com/de4f207bb581ee235f35b8c0c2646aba05b274ab5891f0561ba8a556c13ec9ba/687474703a2f2f696d6167652e697377626d2e636f6d2f32303230303731393233313235312e706e67
https://camo.githubusercontent.com/53f5a4c86d02d0e2e3a133a57001e6dc8829fbc84031c9004660522a0fea27c2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c616e67756167652d507974686f6e2d626c75652e737667
https://camo.githubusercontent.com/a9e01507968cb5a6e14dd4c216a2d076fa1ceed77ea625867a47be166590f0c8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6672616d776f726b2d537068696e782d677265656e2e737667
https://www.zhihu.com/people/wongbingming
https://juejin.im/user/5b08d982f265da0db3502c55
http://image.iswbm.com/20200607114246.png
https://github.com/anynya/magic-python#在线阅读
《Python 黑魔法指南》http://magic.iswbm.com/
https://pan.baidu.com/s/1t7c03aG2y91z3F5vHJGh4whttps://pan.baidu.com/s/1t7c03aG2y91z3F5vHJGh4w
https://github.com/anynya/magic-python#目录大纲
https://camo.githubusercontent.com/e7c67b9a9f61842fc323c1cee650e92ac587569a096c3170373b7f3510721fe0/687474703a2f2f696d6167652e697377626d2e636f6d2f32303230303830323136313131302e706e67
1.1 默默无闻的省略号很好用https://github.com/anynya/magic-python/blob/master/source/c01/c01_01.md
1.2 使用 end 来结束代码块https://github.com/anynya/magic-python/blob/master/source/c01/c01_02.md
1.3 可直接运行的 zip 包https://github.com/anynya/magic-python/blob/master/source/c01/c01_03.md
1.4 反斜杠的倔强: 不写最后https://github.com/anynya/magic-python/blob/master/source/c01/c01_04.md
1.5 如何修改解释器提示符https://github.com/anynya/magic-python/blob/master/source/c01/c01_05.md
1.6 简洁而优雅的链式比较https://github.com/anynya/magic-python/blob/master/source/c01/c01_06.md
1.7 and 和 or 的短路效应https://github.com/anynya/magic-python/blob/master/source/c01/c01_07.md
1.8 连接多个列表最极客的方式https://github.com/anynya/magic-python/blob/master/source/c01/c01_08.md
1.9 字典居然是可以排序的?https://github.com/anynya/magic-python/blob/master/source/c01/c01_09.md
1.10 哪些情况下不需要续行符?https://github.com/anynya/magic-python/blob/master/source/c01/c01_10.md
1.11 用户无感知的小整数池https://github.com/anynya/magic-python/blob/master/source/c01/c01_11.md
1.12 神奇的 intern 机制https://github.com/anynya/magic-python/blob/master/source/c01/c01_12.md
1.13 site-packages和 dist-packageshttps://github.com/anynya/magic-python/blob/master/source/c01/c01_13.md
1.14 argument 和 parameter 的区别?https://github.com/anynya/magic-python/blob/master/source/c01/c01_14.md
1.15 /usr/bin/env python 有什么用?https://github.com/anynya/magic-python/blob/master/source/c01/c01_15.md
1.16 dict() 与 {} 生成空字典有什么区别?https://github.com/anynya/magic-python/blob/master/source/c01/c01_16.md
1.17 有趣但没啥用的 import 用法https://github.com/anynya/magic-python/blob/master/source/c01/c01_17.md
1.18 正负得正,负负得正https://github.com/anynya/magic-python/blob/master/source/c01/c01_18.md
1.19 return不一定都是函数的终点https://github.com/anynya/magic-python/blob/master/source/c01/c01_19.md
1.20 字符串里的缝隙是什么?https://github.com/anynya/magic-python/blob/master/source/c01/c01_20.md
1.21 Python2下 也能使用 print(“”)https://github.com/anynya/magic-python/blob/master/source/c01/c01_21.md
1.22 字母也玩起了障眼法https://github.com/anynya/magic-python/blob/master/source/c01/c01_22.md
1.23 数值与字符串的比较https://github.com/anynya/magic-python/blob/master/source/c01/c01_23.md
1.24 时有时无的切片异常https://github.com/anynya/magic-python/blob/master/source/c01/c01_24.md
1.25 迷一样的字符串https://github.com/anynya/magic-python/blob/master/source/c01/c01_25.md
1.26 x 与 +x 等价吗?https://github.com/anynya/magic-python/blob/master/source/c01/c01_26.md
1.27 += 不等同于=+https://github.com/anynya/magic-python/blob/master/source/c01/c01_27.md
1.28 循环中的局部变量泄露https://github.com/anynya/magic-python/blob/master/source/c01/c01_28.md
1.29 局部/全局变量傻傻分不清https://github.com/anynya/magic-python/blob/master/source/c01/c01_29.md
1.30 break /continue 和 上下文管理器哪个优先级高?https://github.com/anynya/magic-python/blob/master/source/c01/c01_30.md
2.1 懒人必备技能:使用 “_”https://github.com/anynya/magic-python/blob/master/source/c02/c02_01.md
2.2 最快查看包搜索路径的方式https://github.com/anynya/magic-python/blob/master/source/c02/c02_02.md
2.3 使用 json.tool 来格式化 JSONhttps://github.com/anynya/magic-python/blob/master/source/c02/c02_03.md
2.4 命令行式执行 Python 代码https://github.com/anynya/magic-python/blob/master/source/c02/c02_04.md
2.5 用调试模式执行脚本https://github.com/anynya/magic-python/blob/master/source/c02/c02_05.md
2.6 如何快速搭建 FTP 服务器https://github.com/anynya/magic-python/blob/master/source/c02/c02_06.md
2.7 快速构建 HTML 帮助文档https://github.com/anynya/magic-python/blob/master/source/c02/c02_07.md
2.8 最正确且优雅的装包方法https://github.com/anynya/magic-python/blob/master/source/c02/c02_08.md
2.9 往 Python Shell 中传入参数https://github.com/anynya/magic-python/blob/master/source/c02/c02_09.md
2.10 让脚本报错后立即进入调试模式https://github.com/anynya/magic-python/blob/master/source/c02/c02_10.md
2.11 极简模式执行 Python Shellhttps://github.com/anynya/magic-python/blob/master/source/c02/c02_11.md
2.12 在执行任意代码前自动念一段平安经https://github.com/anynya/magic-python/blob/master/source/c02/c02_12.md
2.13 启动 Python Shell 前自动执行某脚本https://github.com/anynya/magic-python/blob/master/source/c02/c02_13.md
2.14 把模块当做脚本来执行https://github.com/anynya/magic-python/blob/master/source/c02/c02_14.md
3.1 八种连接列表的方式https://github.com/anynya/magic-python/blob/master/source/c03/c03_01.md
3.2 合并字典的 8 种方法https://github.com/anynya/magic-python/blob/master/source/c03/c03_02.md
3.3 花式导包的八种方法https://github.com/anynya/magic-python/blob/master/source/c03/c03_03.md
3.4 条件语句的七种写法https://github.com/anynya/magic-python/blob/master/source/c03/c03_04.md
3.5 判断是否包含子串的七种方法https://github.com/anynya/magic-python/blob/master/source/c03/c03_05.md
3.6 海象运算符的三种用法https://github.com/anynya/magic-python/blob/master/source/c03/c03_06.md
4.1 精通装饰器八大用法https://github.com/anynya/magic-python/blob/master/source/c04/c04_01.md
4.2 深入理解描述符https://github.com/anynya/magic-python/blob/master/source/c04/c04_02.md
4.3 精通上下文管理器https://github.com/anynya/magic-python/blob/master/source/c04/c04_03.md
5.1 嵌套上下文管理的另类写法https://github.com/anynya/magic-python/blob/master/source/c05/c05_01.md
5.2 将嵌套 for 循环写成单行https://github.com/anynya/magic-python/blob/master/source/c05/c05_02.md
5.3 单行实现 for 死循环如何写?https://github.com/anynya/magic-python/blob/master/source/c05/c05_03.md
5.4 如何关闭异常自动关联上下文?https://github.com/anynya/magic-python/blob/master/source/c05/c05_04.md
5.5 自带的缓存机制不用白不用https://github.com/anynya/magic-python/blob/master/source/c05/c05_05.md
5.6 如何流式读取数G超大文件https://github.com/anynya/magic-python/blob/master/source/c05/c05_06.md
5.7 实现类似 defer 的延迟调用https://github.com/anynya/magic-python/blob/master/source/c05/c05_07.md
5.8 如何快速计算函数运行时间https://github.com/anynya/magic-python/blob/master/source/c05/c05_08.md
5.9 重定向标准输出到日志https://github.com/anynya/magic-python/blob/master/source/c05/c05_09.md
5.10 快速定位错误进入调试模式https://github.com/anynya/magic-python/blob/master/source/c05/c05_10.md
5.11 在程序退出前执行代码的技巧https://github.com/anynya/magic-python/blob/master/source/c05/c05_11.md
5.12 逗号也有它的独特用法https://github.com/anynya/magic-python/blob/master/source/c05/c05_12.md
5.13 如何在运行状态查看源代码?https://github.com/anynya/magic-python/blob/master/source/c05/c05_13.md
5.14 单分派泛函数如何写?https://github.com/anynya/magic-python/blob/master/source/c05/c05_14.md
5.15 让我爱不释手的用户环境https://github.com/anynya/magic-python/blob/master/source/c05/c05_15.md
5.16 字符串的分割技巧https://github.com/anynya/magic-python/blob/master/source/c05/c05_16.md
5.17 反转字符串/列表最优雅的方式https://github.com/anynya/magic-python/blob/master/source/c05/c05_17.md
5.18 如何将 print 内容输出到文件https://github.com/anynya/magic-python/blob/master/source/c05/c05_18.md
5.19 改变默认递归次数限制https://github.com/anynya/magic-python/blob/master/source/c05/c05_19.md
5.20 让你晕头转向的 else 用法https://github.com/anynya/magic-python/blob/master/source/c05/c05_20.md
5.21 字典访问不存在的key时不再报错https://github.com/anynya/magic-python/blob/master/source/c05/c05_21.md
5.22 如何实现函数的连续调用?https://github.com/anynya/magic-python/blob/master/source/c05/c05_22.md
6.1 不要直接调用类的私有方法https://github.com/anynya/magic-python/blob/master/source/c06/c06_01.md
6.2 默认参数最好不为可变对象https://github.com/anynya/magic-python/blob/master/source/c06/c06_02.md
6.3 增量赋值的性能更好https://github.com/anynya/magic-python/blob/master/source/c06/c06_03.md
6.4 别再使用 pprint 打印了https://github.com/anynya/magic-python/blob/master/source/c06/c06_04.md
7.1 远程登陆服务器的最佳利器https://github.com/anynya/magic-python/blob/master/source/c07/c07_01.md
7.2 代码 BUG 变得酷炫的利器https://github.com/anynya/magic-python/blob/master/source/c07/c07_02.md
7.3 少有人知的 Python "重试机制"https://github.com/anynya/magic-python/blob/master/source/c07/c07_03.md
https://camo.githubusercontent.com/9d74b72511559c576f634855e538352cff1138a8b9a1564816cf125004aa1f39/687474703a2f2f696d6167652e697377626d2e636f6d2f32303230303531323133303132322e706e67
magic.iswbm.com/http://magic.iswbm.com/
Readme https://github.com/anynya/magic-python#readme-ov-file
Please reload this pagehttps://github.com/anynya/magic-python
Activityhttps://github.com/anynya/magic-python/activity
0 forkshttps://github.com/anynya/magic-python/forks
Report repository https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fanynya%2Fmagic-python&report=anynya+%28user%29
Releaseshttps://github.com/anynya/magic-python/releases
Packages 0https://github.com/users/anynya/packages?repo_name=magic-python
Please reload this pagehttps://github.com/anynya/magic-python
Contributorshttps://github.com/anynya/magic-python/graphs/contributors
Please reload this pagehttps://github.com/anynya/magic-python
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.