# 笨办法学Python3 **Repository Path**: lu_shuan/learnpythonthehardway ## Basic Information - **Project Name**: 笨办法学Python3 - **Description**: 使用Python3.7.1 版本记录学习python的过程 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2024-05-06 - **Last Updated**: 2025-08-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: Python ## README # 笨办法学Python3 ## 目录 ### 阶段一:Python 基础核心 #### 1.1 基础语法 - [01 第一个程序](code/ch01_exe.py) - [02 注释和井号](code/ch02_exe.py) - [03 数字和数学计算](code/ch03_exe.py) - [04 变量Variable和命名](code/ch04_exe.py) - [05 更多的变量和打印](code/ch05_exe.py) - [06 字符串(string)和文本](code/ch06_exe.py) - [07 更多打印](code/ch07_exe.py) - [08 打印,打印](code/ch08_exe.py) - [09 打印,打印,打印](code/ch09_exe.py) - [10 那是什么?](code/ch10_exe.py) - [11 提问](code/ch11_exe.py) - [12 提示别人](code/ch12_exe.py) - [13 参数、解包、变量](code/ch13_exe.py) - [14 提示和传递](code/ch14_exe.py) - [23 读代码](code/ch23_exe.py) - [24 更多练习](code/ch24_exe.py) - [25 更多更多的练习](code/ch25_exe.py) - [28 布尔表达式练习](code/ch28_exe.py) ##### 1.1.1 流程控制 - [29 如果(if)](code/ch29_exe.py) - [30 Else 和 If](code/ch30_exe.py) - [31 做出决定](code/ch31_exe.py) - [32 for 循环和列表](code/ch32_exe.py) - [33 while循环](code/ch33_exe.py) - [33pro while循环](加分练习题/ch33_exe_pro.py) - [34 switch 语句](code/ch34_exe.py) - [35 分支和函数](code/ch35_exe.py) #### 1.2 核心数据结构 - [38 字典,可爱的字典](code/ch38_exe.py) - [39pro 字典操作更多](加分练习题/ch39_exe_pro.py) #### 1.3 函数与模块化 - [18 命名、变量、代码、函数](code/ch18_exe.py) - [18pro 函数定义](加分练习题/ch18_exe_pro.py) - [19 函数和变量](code/ch19_exe.py) - [19pro 函数传参](加分练习题/ch19_exe_pro.py) - [20 函数和文件](code/ch20_exe.py) - [21 函数可以返回东西](code/ch21_exe.py) - [22 变量作用域和global/nonlocal关键字](code/ch22_exe.py) - [26 模块导入](code/ch26_exe.py) ### 阶段二:编程范式深化 #### 2.1 面向对象编程 - [39 模块、类、对象](code/ch39_exe.py) - [40 模块、类、对象更多](code/ch40_exe.py) - [41 物以类聚](code/ch41_exe.py) - [41pro 类的继承](加分练习题/ch41_exe_pro.py) - [44 继承 VS 合成](code/ch44_exe.py) - [44pro 类的继承和方法的重新](加分练习题/ch44_exe_pro.py) #### 2.2 文件与IO - [15 读取文件](code/ch15_exe.py) - [16 读写文件](code/ch16_exe.py) - [17 更多文件操作](code/ch17_exe.py) - [17pro 文件操作使用with](加分练习题/ch17_exe_pro.py) - [20pro 不通模式访问文件](加分练习题/ch20_exe_pro.py) ### 阶段三:Python现代生态 #### 并发编程 - [使用 threading 模块创建线程](code/ch45_exe.py) - [线程的同步,使用锁,银行存取款](code/ch46_exe.py) - [线程的同步,使用锁,银行存取款,with 临界代码块](code/ch47_exe.py) - [线程队列,生产和消费者示例](code/ch48_exe.py) - [线程队列的优先级](code/ch49_exe.py)