# LearnPython
**Repository Path**: duanyunpeng/LearnPython
## Basic Information
- **Project Name**: LearnPython
- **Description**: python学习
- **Primary Language**: Python
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2020-07-14
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# LearnPython
#### 介绍
`python`学习
#### 目录
| 知识点 | gitee | github |
| :--- | :---: | :---: |
| python的历史
开发的分类
变量、常量
注释
基础数据类型初始
input
if语句
while语句 | [day01](https://gitee.com/Codeofly/LearnPython/tree/master/day01) |[day01](https://github.com/Codeofly/LearnPython/tree/master/day01)|
| pycharm使用
in/not in
while else
格式化输出
运算符
编码 |[day02](https://gitee.com/Codeofly/LearnPython/tree/master/day02)|[day02](https://github.com/Codeofly/LearnPython/tree/master/day02)|
| int
bool
str |[day03](https://gitee.com/Codeofly/LearnPython/tree/master/day03)| [day03](https://github.com/Codeofly/LearnPython/tree/master/day03)|
| list
list嵌套
tuple
range |[day04](https://gitee.com/Codeofly/LearnPython/tree/master/day04)| [day04](https://github.com/Codeofly/LearnPython/tree/master/day04)|
| dict
字典的嵌套 |[day05](https://gitee.com/Codeofly/LearnPython/tree/master/day05)| [day05](https://github.com/Codeofly/LearnPython/tree/master/day05)|
| id与小数据池
编码2 |[day06](https://gitee.com/Codeofly/LearnPython/tree/master/day06)|[day06](https://github.com/Codeofly/LearnPython/tree/master/day06)|
| 数据类型补充
集合
copy
编码补充 | [day07](https://gitee.com/Codeofly/LearnPython/tree/master/day07)| [day07](https://github.com/Codeofly/LearnPython/tree/master/day07)|
| 文件操作
文件操作代码 | [day08](https://gitee.com/Codeofly/LearnPython/tree/master/day08)| [day08](https://github.com/Codeofly/LearnPython/tree/master/day08)|
| 函数的初识 | [day09](https://gitee.com/Codeofly/LearnPython/tree/master/day09)| [day09](https://github.com/Codeofly/LearnPython/tree/master/day09) |
| 动态参数
名称空间
临时名称空间
函数的嵌套
关键字:global,nonlocal | [day10](https://gitee.com/Codeofly/LearnPython/tree/master/day10)| [day10](https://github.com/Codeofly/LearnPython/tree/master/day10)|
| 函数名的应用
装饰器初识 | [day11](https://gitee.com/Codeofly/LearnPython/tree/master/day11)| [day11](https://github.com/Codeofly/LearnPython/tree/master/day11)|
| 函数的有用信息
带参数的装饰器
多个装饰器装饰一个函数| [day12](https://gitee.com/Codeofly/LearnPython/tree/master/day12)| [day12](https://github.com/Codeofly/LearnPython/tree/master/day12) |
| 迭代器
生成器 | [day13](https://gitee.com/Codeofly/LearnPython/tree/master/day13)| [day13](https://github.com/Codeofly/LearnPython/tree/master/day13)|
| 列表推导式
生成器表达式
内置函数
匿名函数| [day14](https://gitee.com/Codeofly/LearnPython/tree/master/day14)| [day14](https://github.com/Codeofly/LearnPython/tree/master/day14) |
| 递归函数
二分查找 | [day15](https://gitee.com/Codeofly/LearnPython/tree/master/day15)| [day15](https://github.com/Codeofly/LearnPython/tree/master/day15)|
| 面向对象
语法| [day17](https://gitee.com/Codeofly/LearnPython/tree/master/day17)| [day17](https://github.com/Codeofly/LearnPython/tree/master/day17) |
| 面向对象2
命名空间和作用域
面向对象的实例
初识面向对象小结 | [day18](https://gitee.com/Codeofly/LearnPython/tree/master/day18)| [day18](https://github.com/Codeofly/LearnPython/tree/master/day18)|
| 组合
组合实例
继承| [day19](https://gitee.com/Codeofly/LearnPython/tree/master/day19)| [day19](https://github.com/Codeofly/LearnPython/tree/master/day19) |
| Object类
继承与派生
钻石继承问题
钻石继承的深度优先 | [day20](https://gitee.com/Codeofly/LearnPython/tree/master/day20)| [day20](https://github.com/Codeofly/LearnPython/tree/master/day20)|
| 归一化设计
接口类和抽象类
接口隔离原则
多态 | [day21](https://gitee.com/Codeofly/LearnPython/tree/master/day21)| [day21](https://github.com/Codeofly/LearnPython/tree/master/day21)|
| 封装
property方法
classmethod和staticmethod | [day22](https://gitee.com/Codeofly/LearnPython/tree/master/day22)| [day22](https://github.com/Codeofly/LearnPython/tree/master/day22)|
| | [day23](https://gitee.com/Codeofly/LearnPython/tree/master/day23)| [day23](https://github.com/Codeofly/LearnPython/tree/master/day23) |
| | [day24](https://gitee.com/Codeofly/LearnPython/tree/master/day24)| [day24](https://github.com/Codeofly/LearnPython/tree/master/day24) |
| | [day25](https://gitee.com/Codeofly/LearnPython/tree/master/day25)| [day25](https://github.com/Codeofly/LearnPython/tree/master/day25) |
| | [day26](https://gitee.com/Codeofly/LearnPython/tree/master/day26)| [day26](https://github.com/Codeofly/LearnPython/tree/master/day26) |
| | [day27](https://gitee.com/Codeofly/LearnPython/tree/master/day27)| [day27](https://github.com/Codeofly/LearnPython/tree/master/day27) |
| os模块
os.pash:os.path.abspath(path) 返回绝对路径
os.path.basename(path) 返回文件名
os.path.commonprefix(list) 返回list(多个路径)中,所有path共有的最长的路径
os.path.dirname(path) 返回文件路径
os.path.exists(path) 路径存在则返回True,路径损坏返回False
os.path.lexists 路径存在则返回True,路径损坏也返回True
os.path.expanduser(path) 把path中包含的"~"和"~user"转换成用户目录
os.path.expandvars(path) 根据环境变量的值替换path中包含的"$name"和"${name}"
os.path.getatime(path) 返回最近访问时间(浮点型秒数)
os.path.getmtime(path) 返回最近文件修改时间
os.path.getctime(path) 返回文件 path 创建时间
os.path.getsize(path) 返回文件大小,如果文件不存在就返回错误
os.path.isabs(path) 判断是否为绝对路径
os.path.isfile(path) 判断路径是否为文件
os.path.isdir(path) 判断路径是否为目录
os.path.islink(path) 判断路径是否为链接
os.path.ismount(path) 判断路径是否为挂载点
os.path.join(path1[, path2[, ...]]) 把目录和文件名合成一个路径
os.path.normcase(path) 转换path的大小写和斜杠
os.path.normpath(path) 规范path字符串形式
os.path.realpath(path) 返回path的真实路径
os.path.relpath(path[, start]) 从start开始计算相对路径
os.path.samefile(path1, path2) 判断目录或文件是否相同
os.path.sameopenfile(fp1, fp2) 判断fp1和fp2是否指向同一文件
os.path.samestat(stat1, stat2) 判断stat tuple stat1和stat2是否指向同一个文件
os.path.split(path) 把路径分割成 dirname 和 basename,返回一个元组
os.path.splitdrive(path) 一般用在 windows 下,返回驱动器名和路径组成的元组
os.path.splitext(path) 分割路径中的文件名与拓展名
os.path.splitunc(path) 把路径分割为加载点与文件
os.path.walk(path, visit, arg) 遍历path,进入每个目录都调用visit函数,visit函数必须有3个参数(arg, dirname, names),dirname表示当前目录的目录名,names代表当前目录下的所有文件名,args则为walk的第三个参数
os.path.supports_unicode_filenames 设置是否支持unicode路径名 | [day28](https://gitee.com/Codeofly/LearnPython/tree/master/day28)| [day28](https://github.com/Codeofly/LearnPython/tree/master/day28) |
| | [day29](https://gitee.com/Codeofly/LearnPython/tree/master/day29)| [day29](https://github.com/Codeofly/LearnPython/tree/master/day29) |
| | [day30](https://gitee.com/Codeofly/LearnPython/tree/master/day30)| [day30](https://github.com/Codeofly/LearnPython/tree/master/day30) |
| | [day31](https://gitee.com/Codeofly/LearnPython/tree/master/day31)| [day31](https://github.com/Codeofly/LearnPython/tree/master/day31) |
| | [day32](https://gitee.com/Codeofly/LearnPython/tree/master/day32)| [day32](https://github.com/Codeofly/LearnPython/tree/master/day32) |
| | [day33](https://gitee.com/Codeofly/LearnPython/tree/master/day33)| [day33](https://github.com/Codeofly/LearnPython/tree/master/day33) |
| | [day34](https://gitee.com/Codeofly/LearnPython/tree/master/day34)| [day34](https://github.com/Codeofly/LearnPython/tree/master/day34) |
| | [day35](https://gitee.com/Codeofly/LearnPython/tree/master/day35)| [day35](https://github.com/Codeofly/LearnPython/tree/master/day35) |
| | [day36](https://gitee.com/Codeofly/LearnPython/tree/master/day36)| [day36](https://github.com/Codeofly/LearnPython/tree/master/day36) |
| | [day37](https://gitee.com/Codeofly/LearnPython/tree/master/day37)| [day37](https://github.com/Codeofly/LearnPython/tree/master/day37) |
| | [day38](https://gitee.com/Codeofly/LearnPython/tree/master/day38)| [day38](https://github.com/Codeofly/LearnPython/tree/master/day38) |
| | [day39](https://gitee.com/Codeofly/LearnPython/tree/master/day39)| [day39](https://github.com/Codeofly/LearnPython/tree/master/day39) |
| | [day40](https://gitee.com/Codeofly/LearnPython/tree/master/day40)| [day40](https://github.com/Codeofly/LearnPython/tree/master/day40) |
| | [day41](https://gitee.com/Codeofly/LearnPython/tree/master/day41)| [day41](https://github.com/Codeofly/LearnPython/tree/master/day41) |
| | [day42](https://gitee.com/Codeofly/LearnPython/tree/master/day42)| [day42](https://github.com/Codeofly/LearnPython/tree/master/day42) |
| | [day43](https://gitee.com/Codeofly/LearnPython/tree/master/day43)| [day43](https://github.com/Codeofly/LearnPython/tree/master/day43) |
| | [day44](https://gitee.com/Codeofly/LearnPython/tree/master/day44)| [day44](https://github.com/Codeofly/LearnPython/tree/master/day44) |