会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
fyangq
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
下一页
2020年9月15日
判断字符串是否以中文字符开头
摘要: import redef check_chinese(words): regex_str = ".*?([\u4E00-\u9FA5])" match_obj = re.match(regex_str, words) if match_obj: a=match_obj.group(1) if a:
阅读全文
posted @ 2020-09-15 10:13 fyangq
阅读(840)
评论(0)
推荐(0)
2020年9月11日
列表嵌套字典去重统计
摘要: import json tmp_site_type = [{'type': '比价', 'word': '折扣'}, {'type': '比价', 'word': '礼品'}, {'type': '比价', 'word': '特价'}] tmp_dict = dict() for l in tmp_
阅读全文
posted @ 2020-09-11 10:37 fyangq
阅读(308)
评论(0)
推荐(0)
2020年7月8日
git操作
摘要: 1、Git下载地址https://www.git-scm.com/download/win 2、安装Git (安装步骤参考https://www.cnblogs.com/xwgcxk/p/9209237.html) 3、从管理员手中拿到用户名、邮箱、密码 假设用户名为: itcats_cn 邮箱为i
阅读全文
posted @ 2020-07-08 15:32 fyangq
阅读(41)
评论(0)
推荐(0)
2020年7月6日
jmeter 响应结果提取方式
摘要: 正则提取器 jsonpath提取 保存响应到文件
阅读全文
posted @ 2020-07-06 14:20 fyangq
阅读(119)
评论(0)
推荐(0)
jmter 参数化
摘要: 可以使用前置处理器中的用户参数组件进行数据的提供,在该数据中可以使用固定值也可以使用变量值。 每次迭代更新一次:如果有多个用户/使用变量时勾选,如果不勾选,所有线程用的是同一个值,需要不同的线程用不同的值,需要勾选此选项 参数 (1、可以定义多个参数,每个参数可以赋多个值 (2、在用户值中,可以使用
阅读全文
posted @ 2020-07-06 14:00 fyangq
阅读(110)
评论(0)
推荐(0)
postman 自动化
摘要: 1.准备测试数据 第一行写参数名称 2.在Pre-request Script里面设置变量,用文件的数据给变量赋值: 3.在request body 中引用变量 4.打开collection runner: 然后点击运行。 如果要脚本的校验或者加token加入全局变量的化,需要在Tests添加 va
阅读全文
posted @ 2020-07-06 11:04 fyangq
阅读(210)
评论(0)
推荐(0)
2020年7月3日
python yaml文件读写
摘要: #test.yaml people_info:- Age: 28 name: End_name: Xin First_name: zhao- Age: 27 name: End_name: yue First_name: sun- Age: 29 name: End_name: xiaobing F
阅读全文
posted @ 2020-07-03 13:44 fyangq
阅读(257)
评论(0)
推荐(0)
python redis 操作
摘要: from redis import StrictRedisimport redisdef redis_operator(userId): # StrictRedis的连接池的实现方式 pool = redis.ConnectionPool(host=host, port=6379,db=0, pas
阅读全文
posted @ 2020-07-03 11:06 fyangq
阅读(133)
评论(0)
推荐(0)
2020年7月2日
pycharm 连接github操作
摘要: 首先检查pycharm上面是否安装了git,没有安装git那么安装一下; file-Settings-Version Control->查看是否安装git 注意这里path to Git 路径要选中自己安装git的路径 然后填写自己github上面的用户名和密码: 那么接下来建立远程仓库并提交代码
阅读全文
posted @ 2020-07-02 14:03 fyangq
阅读(171)
评论(0)
推荐(0)
校验身份证号
摘要: def get_checkcode(id_number_str): id_regex = '[1-9][0-9]{14}([0-9]{2}[0-9X])?' items = [int(item) for item in id_number_str[:-1]] # 加权因子表 factors = (7
阅读全文
posted @ 2020-07-02 11:03 fyangq
阅读(176)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告