摘要: # -*- encoding:utf-8 -*- """ __title__ = '操作时间的工具类' """ import datetime import time # # time # def getCurrentMilliSecondTime(): """ description: 获取当前时 阅读全文
posted @ 2020-10-09 16:16 幸运的四叶草 阅读(182) 评论(0) 推荐(0) 编辑
摘要: ① 主键(PRIMARY KEY)约束: 不能重复,不能为空,且一个表中只能有一个主键。(注:用多个列创建索引时,只能用表级主键约束来创建); ② 外键(foreign key)约束: 数据可以重复,但不能为空; 如;创建临时表temp时,关联了users中的主键userID Create tabl 阅读全文
posted @ 2020-10-09 10:25 幸运的四叶草 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 1、将请求头信息已yaml文件格式写日到yaml文件中,放在datas目录下面,如: 2、写一个函数,打开该yaml 文件,具体如下: def open_yaml(fail): failname = os.path.join(DATAS_PATH,fail) with open(failname,' 阅读全文
posted @ 2020-10-09 10:17 幸运的四叶草 阅读(331) 评论(0) 推荐(0) 编辑