摘要: pytest: https://www.cnblogs.com/yoyoketang/tag/pytest/ django: https://code.ziqiangxuetang.com/django/django-queryset-api.html 阅读全文
posted @ 2020-06-22 15:22 joy小羲 阅读(80) 评论(0) 推荐(0) 编辑
摘要: pass 阅读全文
posted @ 2020-06-14 18:20 joy小羲 阅读(211) 评论(0) 推荐(0) 编辑
摘要: import pymysql class database: # 实现python链接MySQL服务器 def __init__(self): self.con = pymysql.connect(host='localhost', port=3306, user='root', password= 阅读全文
posted @ 2020-06-03 15:34 joy小羲 阅读(109) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python # _*_ coding:utf-8 _*_ __author__ = 'YinJia' import logging, time import os,sys sys.path.append(os.path.dirname(os.path.dirname( 阅读全文
posted @ 2020-06-03 15:33 joy小羲 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 版本控制分类: 集中式管理: 分布式管理: GitHub Git安装:直接下一步 Git安装验证:dos面板输入命令:git --version 基本配置:需要设置用户名和邮箱 git config --global user.name “用户名” git config --global user. 阅读全文
posted @ 2020-05-29 14:15 joy小羲 阅读(146) 评论(0) 推荐(0) 编辑
摘要: # 3、封装一个英雄类:有姓名、职业、性别 # 封装一个抽象类:技能1、技能2、技能3 # 要求:在子类 刺客、法师 类中 完成英雄类属性的初始化,且重写技能1、技能2、技能3 from abc import ABCMeta, abstractmethod class Hero(metaclass= 阅读全文
posted @ 2020-05-22 15:53 joy小羲 阅读(286) 评论(0) 推荐(0) 编辑
摘要: #冒泡排序 List = [1,9,5,0] for i in range(0,len(List)): for j in range(i+1,len(List)): if List[j] < List[i]: List[i],List[j] =List[j],List[i] print(List) 阅读全文
posted @ 2020-05-22 15:41 joy小羲 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 在接口测试过程中,会经常遇到后面接口需要使用前面的接口的响应参数的值的情况,那么怎么操作呢? JSON提取器表达式讲解 正则提取器介绍 阅读全文
posted @ 2020-05-21 17:11 joy小羲 阅读(513) 评论(0) 推荐(0) 编辑
摘要: 1.实现的是一个查询接口 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>交易组测试平台</title> <link r 阅读全文
posted @ 2020-05-21 17:01 joy小羲 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 1.time模块 import time time.time() #当前时间戳 tuple_time = time.localtime() #转换时间戳为元组 stamp_time = time.mktime(time.localtime()) #给定时间元组转为时间戳 time_change = 阅读全文
posted @ 2020-05-20 19:12 joy小羲 阅读(199) 评论(0) 推荐(0) 编辑