摘要:
我们在传此类参数时,需要对参数的引号进行转义,有下面几种方法 使用单双引号合并使用 data = {'file_task_mode': 'ACCESS_CONTROL_LOG_EXPORT','query_condition':"{'startTime':1645804800000,'endTime 阅读全文
摘要:
git reset --soft HEAD~1 HEAD^的意思是上一个版本,也可以写成HEAD~1 如果你进行了2次commit,想都撤回,可以使用HEAD~2 阅读全文
摘要:
当git push 的时候会出现 git push --set-upstream origin bing (bing为我远程分支) 解决方式: git branch --set-upstream-to=origin/remote_branch your_branch 其中,origin/remote 阅读全文
摘要:
问题:在将小数点乘以100后,会出现下面的问题,而不是我们理想的94.9 解决: >>> round(float(0.949*1000))/10 94.9 阅读全文
摘要:
1.安装pyinstaller,安装指令:pip install pyinstaller 2.打包文件,pyinstaller -F xxx.py(xxx.py,打包的文件) 阅读全文
摘要:
import pytest import allure import requests class TestSimple(object): def TestWatcher(self): url = "http://wthrcdn.etouch.cn/weather_mini?city=成都" r = 阅读全文
摘要:
坑1:十六进制数之间不能有空格(报错:Response message: java.lang.IllegalArgumentException: Hex-encoded binary string contains an uneven no. of digits) 坑2:不能有换行(报错:Respo 阅读全文
摘要:
首先,mysql本身是没有提供全外连接的, MySql中多表查询只提供了内连接,左外连接与右外连接:table_reference {[INNER] JOIN | {LEFT|RIGHT} [OUTER] JOIN} table_reference ON conditional_expr 1】INN 阅读全文
摘要:
一、概述 本文我们将介绍如何使用JMeter+InfluxDB+Grafana打造压测可视化实时监控。 二、 介绍 JMeter引入Backend Listener,用于在压测过程中实时发送统计指标数据给时序数据库Influxdb,通过配置Grafana(开源的WEB可视化看板)数据源连接到Infl 阅读全文
摘要:
脚本准备 方法一:正则表达式提取器 方法二:jp@gc - JSON Path Extractor提取器 方式三:Json Extractor提取器 方式四:边界提取器 方式五:beanshell后置处理器 前置:脚本准备 这里,我们用dummy取样器来模拟服务器的返回,通过关联获取name的值,然 阅读全文