阶段3(上):Python/asyncio/FastAPI 专题的课程、企业场景、面试题和可运行示例
This commit is contained in:
1 parent
b8010a74f3
commit
7f52513ffc
24 files changed
+2817
-33
No files matched your search
@@ -4,12 +4,41 @@ title: Python 语言
|
||||
type: index
|
||||
domain: python
|
||||
stack: [python]
|
||||
tags: []
|
||||
tags: [Python, 语法, 类型标注, pytest]
|
||||
week: [4]
|
||||
---
|
||||
|
||||
# Python 语言
|
||||
|
||||
给 JS 开发者的 Python:语法、类型、异常、包管理、测试。
|
||||
AI 应用 / Agent 岗位的主力语言。你已经会 JavaScript / TypeScript,学 Python 的重点不是从零学编程,而是**对照差异**:语法、数据结构、类型标注、异常、包管理和测试的“Python 写法”,以及一些和 JS 直觉相反的坑(可变默认参数、浮点金额、导入路径)。
|
||||
|
||||
> 本专题建设中:课程、企业场景、面试题和示例代码会陆续补充。
|
||||
## 学习路线
|
||||
|
||||
| 顺序 | 课程 | 级别 | 预计 |
|
||||
| --- | --- | --- | --- |
|
||||
| 1 | [给 JS 开发者的 Python:语法、数据结构、推导式、函数、类](01-syntax-for-js.md) | 基础 | 3 小时 |
|
||||
| 2 | [类型标注、dataclass、异常和上下文管理器、pytest](02-typing-errors-testing.md) | 基础 | 3 小时 |
|
||||
| 3 | [工程化:虚拟环境、uv / pip、项目结构、导入、日志和配置](03-project-packaging.md) | 基础 | 2 小时 |
|
||||
|
||||
## 企业场景
|
||||
|
||||
- [订单对账脚本:从“能跑的脚本”到可测试、可维护的工具](scenarios/order-reconciliation.md)
|
||||
|
||||
## 面试题
|
||||
|
||||
- [Python 面试题](interview.md)
|
||||
|
||||
## 示例代码
|
||||
|
||||
- [examples/reconcile](examples/reconcile/):CSV 对账(Decimal 金额、dataclass、生成器、日志、异常)+ pytest 测试,只用标准库
|
||||
|
||||
## 在 16 周计划中
|
||||
|
||||
- [第 4 周:Python 速成 + FastAPI 基础](../../../plan/week04-python.md)
|
||||
|
||||
## 官方资料
|
||||
|
||||
- Python 官方教程(中文):https://docs.python.org/zh-cn/3/tutorial/
|
||||
- typing 模块:https://docs.python.org/zh-cn/3/library/typing.html
|
||||
- pytest:https://docs.pytest.org/
|
||||
- uv:https://docs.astral.sh/uv/
|
||||
Reference in new issue
Block a user