Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/review-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
fetch-depth: 2

- uses: QuantEcon/action-translation@v0.12.4
- uses: QuantEcon/action-translation@v0.13.0
with:
mode: review
source-repo: QuantEcon/lecture-python-programming
Expand Down
2 changes: 1 addition & 1 deletion .translate/state/about_py.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 3
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/debugging.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 4
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/functions.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 7
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/getting_started.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 7
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/intro.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 0
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/jax_intro.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 6
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/matplotlib.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 5
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/names.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 9
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/need_for_speed.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 5
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/numba.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 8
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/numpy.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 8
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/numpy_vs_numba_vs_jax.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 2
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/oop_intro.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 6
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/pandas.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 5
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/pandas_panel.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 6
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/python_advanced_features.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-25"
model: claude-sonnet-4-6
mode: UPDATE
section-count: 7
tool-version: 0.12.4
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/python_by_example.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 6
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/python_essentials.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 7
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/python_oop.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 5
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/scipy.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 8
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/status.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 0
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/sympy.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 7
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/troubleshooting.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 2
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/workspace.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 6
tool-version: 0.11.1
tool-version: 0.13.0
2 changes: 1 addition & 1 deletion .translate/state/writing_good_code.md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ synced-at: "2026-03-20"
model: claude-sonnet-4-6
mode: NEW
section-count: 5
tool-version: 0.11.1
tool-version: 0.13.0
36 changes: 19 additions & 17 deletions lectures/about_py.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,25 @@ kernelspec:
display_name: Python 3
language: python
name: python3
heading-map:
Overview: 概述
Overview::Can't I Just Use LLMs?: 我就不能直接使用大语言模型吗?
Overview::Isn't MATLAB Better?: MATLAB 不是更好吗?
Introducing Python: Python 简介
Introducing Python::Common Uses: 常见用途
Introducing Python::Relative Popularity: 相对流行度
Introducing Python::Features: 特性
Introducing Python::Syntax and Design: 语法与设计
Introducing Python::The AI Connection: 与人工智能的关联
Scientific Programming with Python: 使用 Python 进行科学编程
Scientific Programming with Python::NumPy: NumPy
Scientific Programming with Python::NumPy Alternatives: NumPy 的替代方案
Scientific Programming with Python::SciPy: SciPy
Scientific Programming with Python::Graphics: 图形可视化
Scientific Programming with Python::Networks and Graphs: 网络与图
Scientific Programming with Python::Other Scientific Libraries: 其他科学库
translation:
title: 关于本系列讲座
headings:
Overview: 概述
Overview::Can't I Just Use LLMs?: 我就不能直接使用大语言模型吗?
Overview::Isn't MATLAB Better?: MATLAB 不是更好吗?
Introducing Python: Python 简介
Introducing Python::Common Uses: 常见用途
Introducing Python::Relative Popularity: 相对流行度
Introducing Python::Features: 特性
Introducing Python::Syntax and Design: 语法与设计
Introducing Python::The AI Connection: 与人工智能的关联
Scientific Programming with Python: 使用 Python 进行科学编程
Scientific Programming with Python::NumPy: NumPy
Scientific Programming with Python::NumPy Alternatives: NumPy 的替代方案
Scientific Programming with Python::SciPy: SciPy
Scientific Programming with Python::Graphics: 图形可视化
Scientific Programming with Python::Networks and Graphs: 网络与图
Scientific Programming with Python::Other Scientific Libraries: 其他科学库
---

(about_py)=
Expand Down
26 changes: 14 additions & 12 deletions lectures/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,20 @@ kernelspec:
display_name: Python 3
language: python
name: python3
heading-map:
Overview: 概述
Debugging: 调试
Debugging::The `debug` Magic: '`debug` 魔法命令'
Debugging::Setting a Break Point: 设置断点
Debugging::Other Useful Magics: 其他有用的魔法命令
Handling Errors: 错误处理
Handling Errors::Errors in Python: Python 中的错误
Handling Errors::Assertions: 断言
Handling Errors::Handling Errors During Runtime: 运行时错误处理
Handling Errors::Handling Errors During Runtime::Catching Exceptions: 捕获异常
Exercises: 练习
translation:
title: 调试与错误处理
headings:
Overview: 概述
Debugging: 调试
Debugging::The `debug` Magic: '`debug` 魔法命令'
Debugging::Setting a Break Point: 设置断点
Debugging::Other Useful Magics: 其他有用的魔法命令
Handling Errors: 错误处理
Handling Errors::Errors in Python: Python 中的错误
Handling Errors::Assertions: 断言
Handling Errors::Handling Errors During Runtime: 运行时错误处理
Handling Errors::Handling Errors During Runtime::Catching Exceptions: 捕获异常
Exercises: 练习
---

(debugging)=
Expand Down
36 changes: 19 additions & 17 deletions lectures/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,25 @@ kernelspec:
display_name: Python 3
language: python
name: python3
heading-map:
Overview: 概述
Function Basics: 函数基础
Function Basics::Built-In Functions: 内置函数
Function Basics::Third Party Functions: 第三方函数
Defining Functions: 定义函数
Defining Functions::Basic Syntax: 基本语法
Defining Functions::Keyword Arguments: 关键字参数
Defining Functions::The Flexibility of Python Functions: Python 函数的灵活性
'Defining Functions::One-Line Functions: `lambda`': 单行函数:`lambda`
Defining Functions::Why Write Functions?: 为什么要编写函数?
Applications: 应用
Applications::Random Draws: 随机抽取
Applications::Adding Conditions: 添加条件
Recursive Function Calls (Advanced): 递归函数调用(进阶)
Exercises: 练习
Advanced Exercises: 进阶练习
translation:
title: 函数
headings:
Overview: 概述
Function Basics: 函数基础
Function Basics::Built-In Functions: 内置函数
Function Basics::Third Party Functions: 第三方函数
Defining Functions: 定义函数
Defining Functions::Basic Syntax: 基本语法
Defining Functions::Keyword Arguments: 关键字参数
Defining Functions::The Flexibility of Python Functions: Python 函数的灵活性
'Defining Functions::One-Line Functions: `lambda`': 单行函数:`lambda`
Defining Functions::Why Write Functions?: 为什么要编写函数?
Applications: 应用
Applications::Random Draws: 随机抽取
Applications::Adding Conditions: 添加条件
Recursive Function Calls (Advanced): 递归函数调用(进阶)
Exercises: 练习
Advanced Exercises: 进阶练习
---

(functions)=
Expand Down
56 changes: 29 additions & 27 deletions lectures/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,35 @@ kernelspec:
display_name: Python 3
language: python
name: python3
heading-map:
Overview: 概述
Python in the Cloud: 云端 Python
Local Install: 本地安装
Local Install::The Anaconda Distribution: Anaconda 发行版
Local Install::Installing Anaconda: 安装 Anaconda
Local Install::Updating `conda`: 更新 `conda`
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`': '{index}`Jupyter 笔记本 <single: Jupyter Notebooks>`'
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Starting the Jupyter Notebook': 启动 Jupyter 笔记本
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Notebook Basics': 笔记本基础
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Notebook Basics::Running Cells': 运行单元格
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Notebook Basics::Modal Editing': 模式编辑
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Notebook Basics::Inserting Unicode (e.g., Greek Letters)': 插入 Unicode(例如希腊字母)
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Notebook Basics::A Test Program': 测试程序
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Working with the Notebook': 使用笔记本
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Working with the Notebook::Tab Completion': Tab 补全
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Working with the Notebook::On-Line Help': 在线帮助
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Working with the Notebook::Other Content': 其他内容
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Debugging Code': 调试代码
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Sharing Notebooks': 共享笔记本
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::QuantEcon Notes': QuantEcon Notes
Installing Libraries: 安装库
Working with Python Files: 使用 Python 文件
Working with Python Files::Editing and Execution: 编辑与执行
'Working with Python Files::Editing and Execution::Option 1: {index}`JupyterLab <single: JupyterLab>`': '选项 1:{index}`JupyterLab <single: JupyterLab>`'
'Working with Python Files::Editing and Execution::Option 2: Using a Text Editor': 选项 2:使用文本编辑器
Exercises: 练习
translation:
title: 入门指南
headings:
Overview: 概述
Python in the Cloud: 云端 Python
Local Install: 本地安装
Local Install::The Anaconda Distribution: Anaconda 发行版
Local Install::Installing Anaconda: 安装 Anaconda
Local Install::Updating `conda`: 更新 `conda`
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`': '{index}`Jupyter 笔记本 <single: Jupyter Notebooks>`'
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Starting the Jupyter Notebook': 启动 Jupyter 笔记本
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Notebook Basics': 笔记本基础
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Notebook Basics::Running Cells': 运行单元格
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Notebook Basics::Modal Editing': 模式编辑
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Notebook Basics::Inserting Unicode (e.g., Greek Letters)': 插入 Unicode(例如希腊字母)
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Notebook Basics::A Test Program': 测试程序
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Working with the Notebook': 使用笔记本
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Working with the Notebook::Tab Completion': Tab 补全
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Working with the Notebook::On-Line Help': 在线帮助
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Working with the Notebook::Other Content': 其他内容
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Debugging Code': 调试代码
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::Sharing Notebooks': 共享笔记本
'{index}`Jupyter Notebooks <single: Jupyter Notebooks>`::QuantEcon Notes': QuantEcon Notes
Installing Libraries: 安装库
Working with Python Files: 使用 Python 文件
Working with Python Files::Editing and Execution: 编辑与执行
'Working with Python Files::Editing and Execution::Option 1: {index}`JupyterLab <single: JupyterLab>`': '选项 1:{index}`JupyterLab <single: JupyterLab>`'
'Working with Python Files::Editing and Execution::Option 2: Using a Text Editor': 选项 2:使用文本编辑器
Exercises: 练习
---

(getting_started)=
Expand Down
2 changes: 2 additions & 0 deletions lectures/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ kernelspec:
display_name: Python 3
language: python
name: python3
translation:
title: 面向经济学与金融学的Python编程
---

# 面向经济学与金融学的Python编程
Expand Down
Loading