Python:AI 與數據科學的第一語言
定位:AI/ML 第一語言 · 万能胶水 · 數據科學 · 自動化 · 快速原型
Python 的 14 大應用方向
| 應用方向 | 细分示例與說明 | 典型應用 / 程序 |
|---|---|---|
| AI 模型训练與推理 | PyTorch / TensorFlow 深度學習;Hugging Face 微調 LLM(LoRA/QLoRA);YOLO 檢測;Stable Diffusion 生图;ONNX 導出 | PyTorch 训练脚本 Hugging Face Trainer YOLO 项目 Diffusers Pipeline vLLM 推理服務 |
| AI Agent 應用開發 | LangChain / LangGraph 多步 Agent;AutoGPT 自主 Agent;Function Calling 工具調用;多 Agent 協作 | LangChain Agent CrewAI AutoGen Dify 工作流 Coze Bot |
| RAG 知識庫應用 | 向量數據庫(Chroma/Pinecone/Milvus)檢索增強生成;企業私有知識庫問答;文檔解析→Embedding→檢索→生成 | LlamaIndex 项目 Dify RAG FastGPT MaxKB QAnything |
| AI 演示界面 | Gradio 模型 Demo;Streamlit 數據/AI 應用;Chainlit ChatGPT 風格界面;Mesop | Gradio Demo Streamlit App Chainlit Chat Open WebUI |
| MCP Server 開發 | 為 AI 助手開發 MCP 工具服務;讓 AI 調用自定義 API/數據庫/文件系统 | MCP Filesystem MCP Database MCP GitHub 自定義 MCP 工具 |
| Web 後端開發 | Django 全栈(ORM/Admin/Auth);FastAPI 异步 API(自動 OpenAPI 文檔);Flask 微服務;Celery 异步任務 | Django 项目 FastAPI 服務 Flask App Sanic Litestar |
| 網絡爬虫 | Scrapy 分布式爬虫;Selenium/Playwright 動態爬取;BeautifulSoup 解析 | Scrapy 项目 Playwright 脚本 Crawl4AI 新聞/電商爬虫 |
| 數據分析與可视化 | Pandas 清洗分析;NumPy 科學計算;Matplotlib/Seaborn/Plotly 可视化;Jupyter 交互报告 | Jupyter Notebook Pandas Pipeline Plotly Dashboard Kaggle Kernel |
| 自動化脚本 | 辦公自動化(Excel/Word/PDF/郵件);文件批處理;自動化測試(pytest);RPA | openpyxl 脚本 python-docx PyAutoGUI Robot Framework |
| Bot 開發 | Telegram Bot;Discord Bot;微信 Bot;飛書/钉钉機器人 Webhook | python-telegram-bot discord.py Bot wechaty 飛書 Bot |
| DevOps 運維 | Ansible 配置管理;Fabric 遠程操作;云 SDK 管理资源 | Ansible Playbook Fabric 脚本 Boto3 (AWS) Pulumi |
| 嵌入式 / IoT | MicroPython 在 ESP32 運行;CircuitPython(Adafruit);树莓派 GPIO/傳感器/智能家居網關 | MicroPython 固件 CircuitPython 项目 树莓派 Home Assistant |
| 科學計算與仿真 | SciPy 工程計算;SymPy 符号數學;SimPy 離散事件模擬;天文/生物仿真 | SciPy 仿真 SymPy 推導 AstroPy BioPython |
| 3D / 創意工具脚本 | Blender Python 插件;Maya/Houdini 脚本;Pillow/OpenCV 图像批處理 | Blender Addon Maya MEL/Py OpenCV 流水线 Pillow 批處理 |