René's URL Explorer Experiment


Title: GitHub - lzjun567/python_snippets: python tricks and features

Open Graph Title: GitHub - lzjun567/python_snippets: python tricks and features

X Title: GitHub - lzjun567/python_snippets: python tricks and features

Description: python tricks and features. Contribute to lzjun567/python_snippets development by creating an account on GitHub.

Open Graph Description: python tricks and features. Contribute to lzjun567/python_snippets development by creating an account on GitHub.

X Description: python tricks and features. Contribute to lzjun567/python_snippets development by creating an account on GitHub.

Opengraph URL: https://github.com/lzjun567/python_snippets

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:dc83e0e0-6341-0e61-0910-f022baedbc8f
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idB222:37CBB2:30D8827:410E410:696F2403
html-safe-nonce914859a3baf7fda747d7e1d8ed8d57f89ca9b31c566e55df52d8bafb692e6108
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjIyOjM3Q0JCMjozMEQ4ODI3OjQxMEU0MTA6Njk2RjI0MDMiLCJ2aXNpdG9yX2lkIjoiNDAwOTEwNjI5MTg2NTYyNTYwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4abc3d934897fe34bbf3d5309d9f43d665526ed364049ef7354148d14a508d3b
hovercard-subject-tagrepository:160055918
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/lzjun567/python_snippets
twitter:imagehttps://opengraph.githubassets.com/e5af7eef6c597bf98902f2ec63a32a2976fa2a668f8b1631f601165f03fc8c84/lzjun567/python_snippets
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e5af7eef6c597bf98902f2ec63a32a2976fa2a668f8b1631f601165f03fc8c84/lzjun567/python_snippets
og:image:altpython tricks and features. Contribute to lzjun567/python_snippets development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee
turbo-cache-controlno-preview
go-importgithub.com/lzjun567/python_snippets git https://github.com/lzjun567/python_snippets.git
octolytics-dimension-user_id3820941
octolytics-dimension-user_loginlzjun567
octolytics-dimension-repository_id160055918
octolytics-dimension-repository_nwolzjun567/python_snippets
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id160055918
octolytics-dimension-repository_network_root_nwolzjun567/python_snippets
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
release39aed5006635ab6f45e6b77d23e73b08a00272a3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/lzjun567/python_snippets#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Flzjun567%2Fpython_snippets
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%2Flzjun567%2Fpython_snippets
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=lzjun567%2Fpython_snippets
Reloadhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets
Reloadhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets
Reloadhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets
lzjun567 https://patch-diff.githubusercontent.com/lzjun567
python_snippetshttps://patch-diff.githubusercontent.com/lzjun567/python_snippets
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Flzjun567%2Fpython_snippets
Fork 0 https://patch-diff.githubusercontent.com/login?return_to=%2Flzjun567%2Fpython_snippets
Star 1 https://patch-diff.githubusercontent.com/login?return_to=%2Flzjun567%2Fpython_snippets
1 star https://patch-diff.githubusercontent.com/lzjun567/python_snippets/stargazers
0 forks https://patch-diff.githubusercontent.com/lzjun567/python_snippets/forks
Branches https://patch-diff.githubusercontent.com/lzjun567/python_snippets/branches
Tags https://patch-diff.githubusercontent.com/lzjun567/python_snippets/tags
Activity https://patch-diff.githubusercontent.com/lzjun567/python_snippets/activity
Star https://patch-diff.githubusercontent.com/login?return_to=%2Flzjun567%2Fpython_snippets
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Flzjun567%2Fpython_snippets
Code https://patch-diff.githubusercontent.com/lzjun567/python_snippets
Issues 0 https://patch-diff.githubusercontent.com/lzjun567/python_snippets/issues
Pull requests 0 https://patch-diff.githubusercontent.com/lzjun567/python_snippets/pulls
Actions https://patch-diff.githubusercontent.com/lzjun567/python_snippets/actions
Projects 0 https://patch-diff.githubusercontent.com/lzjun567/python_snippets/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/lzjun567/python_snippets/security
Please reload this pagehttps://patch-diff.githubusercontent.com/lzjun567/python_snippets
Insights https://patch-diff.githubusercontent.com/lzjun567/python_snippets/pulse
Code https://patch-diff.githubusercontent.com/lzjun567/python_snippets
Issues https://patch-diff.githubusercontent.com/lzjun567/python_snippets/issues
Pull requests https://patch-diff.githubusercontent.com/lzjun567/python_snippets/pulls
Actions https://patch-diff.githubusercontent.com/lzjun567/python_snippets/actions
Projects https://patch-diff.githubusercontent.com/lzjun567/python_snippets/projects
Security https://patch-diff.githubusercontent.com/lzjun567/python_snippets/security
Insights https://patch-diff.githubusercontent.com/lzjun567/python_snippets/pulse
Brancheshttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/branches
Tagshttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/tags
https://patch-diff.githubusercontent.com/lzjun567/python_snippets/branches
https://patch-diff.githubusercontent.com/lzjun567/python_snippets/tags
8 Commitshttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/commits/master/
https://patch-diff.githubusercontent.com/lzjun567/python_snippets/commits/master/
.gitignorehttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/.gitignore
.gitignorehttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/.gitignore
001.pyhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/001.py
001.pyhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/001.py
README.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/README.md
README.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/README.md
enumerate.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/enumerate.md
enumerate.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/enumerate.md
forelse.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/forelse.md
forelse.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/forelse.md
in.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/in.md
in.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/in.md
join连接字符串.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/join%E8%BF%9E%E6%8E%A5%E5%AD%97%E7%AC%A6%E4%B8%B2.md
join连接字符串.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/join%E8%BF%9E%E6%8E%A5%E5%AD%97%E7%AC%A6%E4%B8%B2.md
pprint.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/pprint.md
pprint.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/pprint.md
tryelse.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/tryelse.md
tryelse.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/tryelse.md
unpack.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/unpack.md
unpack.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/unpack.md
uuid.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/uuid.md
uuid.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/uuid.md
交换变量.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/%E4%BA%A4%E6%8D%A2%E5%8F%98%E9%87%8F.md
交换变量.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/%E4%BA%A4%E6%8D%A2%E5%8F%98%E9%87%8F.md
列表推导式.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/%E5%88%97%E8%A1%A8%E6%8E%A8%E5%AF%BC%E5%BC%8F.md
列表推导式.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/%E5%88%97%E8%A1%A8%E6%8E%A8%E5%AF%BC%E5%BC%8F.md
动态设置获取实例属性.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/%E5%8A%A8%E6%80%81%E8%AE%BE%E7%BD%AE%E8%8E%B7%E5%8F%96%E5%AE%9E%E4%BE%8B%E5%B1%9E%E6%80%A7.md
动态设置获取实例属性.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/%E5%8A%A8%E6%80%81%E8%AE%BE%E7%BD%AE%E8%8E%B7%E5%8F%96%E5%AE%9E%E4%BE%8B%E5%B1%9E%E6%80%A7.md
单行ifesle.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/%E5%8D%95%E8%A1%8Cifesle.md
单行ifesle.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/%E5%8D%95%E8%A1%8Cifesle.md
反转列表.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/%E5%8F%8D%E8%BD%AC%E5%88%97%E8%A1%A8.md
反转列表.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/%E5%8F%8D%E8%BD%AC%E5%88%97%E8%A1%A8.md
合并字典.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/%E5%90%88%E5%B9%B6%E5%AD%97%E5%85%B8.md
合并字典.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/%E5%90%88%E5%B9%B6%E5%AD%97%E5%85%B8.md
字典推导式.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/%E5%AD%97%E5%85%B8%E6%8E%A8%E5%AF%BC%E5%BC%8F.md
字典推导式.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/%E5%AD%97%E5%85%B8%E6%8E%A8%E5%AF%BC%E5%BC%8F.md
字符串格式化.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/%E5%AD%97%E7%AC%A6%E4%B8%B2%E6%A0%BC%E5%BC%8F%E5%8C%96.md
字符串格式化.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/%E5%AD%97%E7%AC%A6%E4%B8%B2%E6%A0%BC%E5%BC%8F%E5%8C%96.md
统计列表元素出现频率.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/%E7%BB%9F%E8%AE%A1%E5%88%97%E8%A1%A8%E5%85%83%E7%B4%A0%E5%87%BA%E7%8E%B0%E9%A2%91%E7%8E%87.md
统计列表元素出现频率.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/%E7%BB%9F%E8%AE%A1%E5%88%97%E8%A1%A8%E5%85%83%E7%B4%A0%E5%87%BA%E7%8E%B0%E9%A2%91%E7%8E%87.md
读取文件.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/%E8%AF%BB%E5%8F%96%E6%96%87%E4%BB%B6.md
读取文件.mdhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/blob/master/%E8%AF%BB%E5%8F%96%E6%96%87%E4%BB%B6.md
READMEhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets
https://patch-diff.githubusercontent.com/lzjun567/python_snippets#python_snippets
tricks https://patch-diff.githubusercontent.com/topics/tricks
python3 https://patch-diff.githubusercontent.com/topics/python3
pythonic https://patch-diff.githubusercontent.com/topics/pythonic
features https://patch-diff.githubusercontent.com/topics/features
pythonic-code https://patch-diff.githubusercontent.com/topics/pythonic-code
Readme https://patch-diff.githubusercontent.com/lzjun567/python_snippets#readme-ov-file
Please reload this pagehttps://patch-diff.githubusercontent.com/lzjun567/python_snippets
Activityhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/activity
1 starhttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/stargazers
1 watchinghttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/watchers
0 forkshttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/forks
Report repository https://patch-diff.githubusercontent.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Flzjun567%2Fpython_snippets&report=lzjun567+%28user%29
Releaseshttps://patch-diff.githubusercontent.com/lzjun567/python_snippets/releases
Packages 0https://patch-diff.githubusercontent.com/users/lzjun567/packages?repo_name=python_snippets
Python 100.0% https://patch-diff.githubusercontent.com/lzjun567/python_snippets/search?l=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.