LearnPython
以撸代码的形式学习Python
Install / Use
/learn @xianhu/LearnPythonREADME
LearnPython
以撸代码的形式学习Python, 具体说明在知乎专栏-撸代码,学知识
===================================================================================================
python_base.py: 千行代码入门Python
python_visual.py: 15张图入门Matplotlib
python_visual_animation.py: 使用Matplotlib画动态图实例
python_spider.py: 一个很“水”的Python爬虫入门代码文件
python_weibo.py: “史上最详细”的Python模拟登录新浪微博流程
python_lda.py: 玩点高级的--带你入门Topic模型LDA(小改进+附源码)
python_sqlalchemy.py: 作为一个Pythoner, 不会SQLAlchemy都不好意思跟同行打招呼!
python_oneline.py: 几个小例子告诉你, 一行Python代码能干哪些事
python_requests.py: Python中最好用的爬虫库Requests代码实例
python_functional.py: Python进阶: 函数式编程实例(附代码)
python_decorator.py: Python进阶: 通过实例详解装饰器(附代码)
python_datetime.py: 你真的了解Python中的日期时间处理吗?
python_metaclass.py: Python进阶: 一步步理解Python中的元类metaclass
python_coroutine.py: Python进阶: 理解Python中的异步IO和协程(Coroutine), 并应用在爬虫中
python_aiohttp.py: Python中最好用的异步爬虫库Aiohttp代码实例
python_thread_multiprocess.py: Python进阶: 聊聊IO密集型任务、计算密集型任务,以及多线程、多进程
python_version36.py: Python3.6正式版要来了, 你期待哪些新特性?
python_magic_methods: Python进阶: 实例讲解Python中的魔法函数(Magic Methods)
python_restful_api.py: 利用Python和Flask快速开发RESTful API
python_restful_api.py: RESTful API进阶: 连接数据库、添加参数、Token认证、返回代码说明等
python_context.py: With语句和上下文管理器ContextManager
python_flask.py: Flask相关说明
MyShow: 玩点好玩的--知乎全部话题关系可视化
python_markov_chain.py: 玩点好玩的--使用马尔可夫模型自动生成文章
python_wechat.py: 玩点好玩的--自己写一个微信小助手
python_csv.py: Python中CSV文件的简单读写
python_numpy.py: 使用numpy进行矩阵操作
python_mail.py: 使用Python自动发送邮件,包括发送HTML以及图片、附件等
python_redis.py: Python操作Redis实现消息的发布与订阅
python_schedule.py: Python进行调度开发
python_socket.py: Python的socket开发实例
python_re.py:Python的re模块的主要功能以及如何使用它们进行字符串匹配和替换
Plotly目录: 一些plotly画图的实例,使用jupyter notebook编写
===================================================================================================
您可以fork该项目, 并在修改后提交Pull request, 看到后会尽量进行代码合并
Related Skills
claude-opus-4-5-migration
99.2kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
344.4kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
TrendRadar
50.5k⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
mcp-for-beginners
15.7kThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
