![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python 开发
文章平均质量分 74
志愿君
这个作者很懒,什么都没留下…
展开
-
python基础之数据类型与变量
http://www.cnblogs.com/linhaifeng/articles/5935801.html转载 2018-03-15 15:14:53 · 128 阅读 · 0 评论 -
Python 上下文管理协议
操作文件对象时,我们一般采用下列方式: with open("a.txt",'w+',encoding = "utf-8) as f: '代码块'` 这种方法叫做上下文管理协议,即with语句,为了让一个对象兼容with语句,只需要在该对象所在的类中声明 enter 和 exit 方法 class Open: def __init__(self, name): ...原创 2018-05-04 14:29:28 · 549 阅读 · 0 评论 -
面向对象进阶
http://www.cnblogs.com/linhaifeng/articles/6204014.html转载 2018-05-04 08:30:58 · 209 阅读 · 0 评论 -
面向对象
http://www.cnblogs.com/linhaifeng/articles/6182264.html转载 2018-04-19 14:17:59 · 112 阅读 · 0 评论 -
Python 装饰器
http://www.cnblogs.com/linhaifeng/articles/6140395.html转载 2018-03-29 09:30:17 · 112 阅读 · 0 评论 -
Python 模块简介
http://www.cnblogs.com/yuanchenqi/articles/5732581.html转载 2018-04-03 09:53:09 · 241 阅读 · 0 评论 -
Python 各个数据类型 常用函数
一 int 类型 1 bit_length() 当前数字的二进制至少用几位表示 a = 1 a.bit_length() = 1; 1的二进制为 1 b = 2 b.bit_length() = 2; 2的二进制为 10 c = 3 c.bit_length() = 2; 3的二进制为 11 d =...原创 2018-03-13 17:27:52 · 508 阅读 · 0 评论 -
python基础之函数,递归,内置函数
http://www.cnblogs.com/linhaifeng/articles/6113086.html转载 2018-03-16 13:54:15 · 158 阅读 · 0 评论 -
Python 字符串格式化
方法一: %[(name)][flags][width].[precision]typecode (name) 可选,用于选择指定的key flags 可选,可供选择的值有: 右对齐;正数前加正好,负数前加负号; 左对齐;正数前无符号,负数前加负号; 空格 右对齐;正数前加空格,负数前加负号; 0 右对齐;正数前无符号,负数前加负号;用0填充空白处 ...原创 2018-03-16 11:28:03 · 184 阅读 · 0 评论 -
Python 异常处理
我原创 2018-05-04 15:31:00 · 168 阅读 · 0 评论