摘要: 1. low版日志 2. 标配版日志 3. 旗舰版日志 阅读全文
posted @ 2019-07-20 18:57 God_with_us 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 1.第一类: 执行文件 通过 import 导入包以及包内的功能 2.执行文件 通过 from ... import... 导入包以及包内的功能: 3.相对导入和绝对导入 阅读全文
posted @ 2019-07-19 08:58 God_with_us 阅读(116) 评论(0) 推荐(0) 编辑
摘要: calendar 阅读全文
posted @ 2019-07-18 23:21 God_with_us 阅读(120) 评论(0) 推荐(0) 编辑
摘要: datetime 阅读全文
posted @ 2019-07-15 22:09 God_with_us 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1. ```python 1. 时间戳: time.time() 时差,计时...... 2. 格式化时间 print(time.strftime('%Y-%m-%d %H:%M:%S'))# 2019-06-28 17:36:48 3. 时间字符串: print(time.strftime('%Y 阅读全文
posted @ 2019-07-15 22:07 God_with_us 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 软件开发规范 1.为什么要有软件开发规范? app软件不可能全部都写在一个文件中,加载效率低,不容易查找,不规范 代码越多,你越不可能放在一个文件中.你需要将你的代码分文件 软件开发规范 common.py公共组件:装饰器,日志函数 bin ——> 启动文件 conf ——>setting 配置文件 阅读全文
posted @ 2019-07-13 10:18 God_with_us 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 加密模块, 摘要算法,散列算法,等等.它是一堆加密算法的集合. hashlib如何加密? 将一个bytes类型的数据 通过hashlib进行加密返回 一个等长度的16进制数字. 过程不可逆. 相同的bytes类型的数据通过相同的加密方法得到的数字绝对相同. 不相同的bytes类型的数据通过相同的加密 阅读全文
posted @ 2019-07-12 20:07 God_with_us 阅读(164) 评论(0) 推荐(0) 编辑
摘要: path 和路径相关 *** 拼接路径join 阅读全文
posted @ 2019-07-11 23:07 God_with_us 阅读(178) 评论(0) 推荐(0) 编辑
摘要: import sys print(sys.path) *** print(sys.version)#版本 for i in range(3): print(i) exit()#强制退出 quit() for i in range(5): print(i) sys.platform windows版本 阅读全文
posted @ 2019-07-11 23:00 God_with_us 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1. 序列化模块(非常非常重要 ) 序列化:将一个数据结构 (list,dict....)转化成一个特殊的序列(特殊的字符串)的过程. 反序列化:将这个特殊的序列反转回原来的数据结构。 2. 网络传输 我们现在要解决的问题: 如果有一种特殊的字符串,这个字符串可以与任何的数据结构互相转换. 3. 序 阅读全文
posted @ 2019-07-09 16:18 God_with_us 阅读(161) 评论(0) 推荐(0) 编辑