上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
  2020年6月22日
摘要: Httpunner HTTPBasicAuth加密 # 第一种方式 auth_token = None def getToken(loginURL, login_client, login_client_pwd, login_user, login_pwd, login_grt_type): ''' 阅读全文
posted @ 2020-06-22 17:20 蜗牛也是妞 阅读(4852) 评论(0) 推荐(0)
  2020年6月9日
摘要: import os from urllib.parse import quote,unquote # 获取文件存放路径 dataFilesPath = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 阅读全文
posted @ 2020-06-09 11:18 蜗牛也是妞 阅读(596) 评论(0) 推荐(0)
  2020年2月21日
摘要: 列表、字典排序: data_dic = {'20190105': [{'name':'bbb','value': '222'}, {'name':'aaa', 'value': '111'}], '20190101': [{'name':'bbb','value': '333'}, {'name': 阅读全文
posted @ 2020-02-21 13:15 蜗牛也是妞 阅读(3422) 评论(0) 推荐(0)
  2020年1月22日
摘要: def is_number(num): ''' 判断是否为数字 :param num: :return: ''' pattern = re.compile(r'^[-+]?[-0-9]\d*\.\d*|[-+]?\.?[0-9]\d*$') result = pattern.match(str(nu 阅读全文
posted @ 2020-01-22 15:41 蜗牛也是妞 阅读(3291) 评论(0) 推荐(0)
  2020年1月20日
摘要: # 时间加减,月/日 import calendar import math def get_recent_month(dt, months): # 这里的months 参数传入的是正数表示往后推,负数表示往前推 month = dt.month - 1 + months year = dt.yea 阅读全文
posted @ 2020-01-20 10:28 蜗牛也是妞 阅读(6066) 评论(0) 推荐(0)
  2019年11月6日
摘要: cx_Oracle 操作oracle数据库 1、安装配置cx_Oracle模块 参考 https://www.jianshu.com/p/78e6640bf4b0 Window系统配置 1)安装cx_oracle模块 pip3 install cx_Oracle 2)下载所需的软件包vcredist 阅读全文
posted @ 2019-11-06 15:34 蜗牛也是妞 阅读(2881) 评论(0) 推荐(0)
摘要: paramiko模块,基于SSH用于连接远程服务器并执行相关操作 class SSHConnection(object): def __init__(self, host_dict): self.host = host_dict['host'] self.port = host_dict['port 阅读全文
posted @ 2019-11-06 15:28 蜗牛也是妞 阅读(581) 评论(0) 推荐(0)
  2019年10月11日
摘要: lines = [(1, 1, '父1节点'), (2, 1, '1-2'), (3, 1, '1-3'), (4, 3, '1-3-4'), (5, 3, '1-3-5'), (6, 3, '1-3-6'), (7, 7, '父7节点'), (8, 7, '7-8'), (9, 7, '7-9') 阅读全文
posted @ 2019-10-11 14:06 蜗牛也是妞 阅读(1035) 评论(0) 推荐(0)
  2019年10月8日
摘要: python中四舍五入进位不准,自己写了个方法结果: def new_round(_float, _len): ''' 四舍五入保留小数位,如果想实现 0.2 显示为 0.20,可使用 '%.2f' % num 实现 :param _float: :param _len: 保留的小数位 :retur 阅读全文
posted @ 2019-10-08 13:45 蜗牛也是妞 阅读(765) 评论(0) 推荐(0)
  2019年1月23日
摘要: HttpRunner 2.0 参数化数据驱动案例,废话不说,直接上干货。 1、测试用例目录结构 api:接口集 testcases:测试用例 testsuites:测试套件 data:测试数据 2、api 接口集 create1.yaml: name: 创建外方 variables: - custo 阅读全文
posted @ 2019-01-23 16:21 蜗牛也是妞 阅读(4255) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页