- 博客(31)
- 资源 (4)
- 收藏
- 关注
原创 两个线程交替打印1~100的数字
代码实现import threadingcondition = threading.Condition()num = 100def run(): global num condition.acquire() while num > 0: print("线程{}输出数字{}".format(threading.currentThread().name, num)) num -= 1 if num == 0:
2021-12-02 18:36:00
334
原创 requests body中文问题
post请求body含中文,先用type检查类型,如果是unicode编码,需要进行Utf-8编码,body. encode(“Utd-8”)
2021-03-31 19:46:09
807
原创 pip install安装问题记录
问题1:python2.7,安装pip install python-jenkins时,提示tunnel connect failed:407 authenticationrequired – some package may not be found解决办法:pip install setuptools==42 – upgrade,如果提示需要安装whell,则执行pip install whell后,再安装setuptools即可...
2020-11-24 10:11:26
202
原创 alpine制作镜像遇到的坑
1、安装时区包apk add -U tzdata2、列出安装的时区文件ls /usr/share/zoneinfo3、拷贝时区文件cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime4、指定时区为东八区echo “Asia/Shanghai” >/etc/timezone5、验证时间date -R已经安装时区的话,配置软链接也可以ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/local
2020-08-11 16:42:41
1174
1
原创 kubectl安装
分专属云和私有云的kubectl1、下载的二进制文件2、将二进制文件放到/usr/local/bin/kubectl,并赋予执行权限:chmod +x ./kubectl
2020-08-10 19:17:04
225
原创 python-笔记
将json. loads(obj)处理含中文的字符串后,输出文本内容时,可以使用下面方法,避免中文内容变成unicode编码def convert(input):if isinstance(input,dict):return {convert(key):convert(value) for key.value in input.iteritems()}elif isinstance(input,list):return [convert(element) for element in input
2020-07-19 22:50:25
136
原创 oracle相关
生成执行计划快捷键:F5在命令行窗口,依次执行1.explain plan for select *from A;2.select *from table(dbms_explain.display())
2020-07-17 20:06:50
153
原创 docker拉取镜像
1、修改/usr/lib/systemd/system/docker.service文件,添加代理,类似例如:Environment=“HTTP_PROXY=http://10.66.248.82:80”Environment=“HTTP_PROXY=https://10.66.248.82:80”2、重新加载配置,重启dockersystemctl daemon-reloadsystemctl restart docker3、执行拉取镜像命令,比如:拉取telegra镜像,docker pul
2020-06-20 12:30:25
375
原创 jmeter生成报告报错解决方法
由于jtl文件有8G大小,生成html报告时,报java. lang. outofmemoryerror,原因是默认的heap内存是1G,超过了就会内存异常,打开jmeter文件,非jmeter. sh或jmeter.bat,然后修改heap
2020-06-19 12:15:06
1441
原创 python2编码问题
报错信息:Unicode EncodeError:“ascii” codec cannot encode characters in position 0-14:ordinal not in range(128)解决办法:import chardetprint chardet. detect(bytes(文件名))如果显示encoding是ascii,是无法处理含中文的文件名的,需要将默认编码格式设置为utf-8reload(sys)sys. setdefaultencoding(“utf-8”
2020-06-10 19:21:25
141
原创 alpine安装jdk需要安装glibc库
参考文章:https:www. cnblogs. com/klvchen/p/11015267.html
2020-05-19 21:37:09
3039
原创 Linux系统性能分析
参考文章http://blog.chinaunix.net/uid-12693781-id-368837.htmlhttp://www.cnblogs.com/heygirl/p/4933412.htmlhttp://www.cnblogs.com/dyllove98/archive/2013/06/12/3132940.htmlhttp://blog.youkuaiyun.com/erlib/article/details/40539499http://blog.youkuaiyun.com/miaomiaodmiao
2020-05-12 19:18:51
160
原创 Rf 导入sshlibrary报错
paramiko版本要跟robotframework-sshlibrary版本对应,比如paramiko==2.0.0跟robotframework-sshlibrary=2.1.1
2020-04-26 17:21:08
337
原创 Linux代理设置
docker设置代理/usr/lib/systemd/system/docker.service配置yum源代理yum. repos. d
2020-04-26 16:45:16
227
原创 git操作学习
列出所有分支git branch -r结果:orginal/masterorginal/publish切换到publishgit checkout publish合并master分支git merge master提交合并结果git push
2020-04-24 17:42:33
95
原创 k8s 学习
参考文章:https://kubernetes.io/zh/docs/tasks/access-application-cluster/configure-access-multiple-clusters/#%e5%87%86%e5%a4%87%e5%bc%80%e5%a7%8b
2020-04-19 20:49:13
125
原创 Kubernetes 安全认证
Kubernetes 系统提供了三种认证方式:CA 认证、Token 认证 和 Base 认证参考文章:https://www.cnblogs.com/breg/p/5923604.html
2020-04-19 20:30:45
230
原创 使用octotree 出现Error: Connection error octotree解决办法
使用octotree,出现如下报错Error: Connection error octotreeCannot connect to website. If your network connection to this website解决方法:需要在github设置访问token登录github,打开https://github.com/settings/profile,点击Develo...
2020-03-29 11:35:37
2871
1
原创 2020-03-26
shell常见用法记录if [ ! -d $backup_path];thenmkdir -p $backup_path如果backup_path目录不存在,则按目录层级递归创建zip -r test. zip a 123. txt 意思是将文件夹a和文件123.txt压缩打包成test. zip的包...
2020-03-26 19:42:32
208
原创 python pip使用记录
python pip使用记录windows下使用C:\Users\xxx\pip目录下,创建pip.ini文件,内容如下[global]index-url = http://mirrors.aliyun.com/pypi/simple/[install]trusted-host=mirrors.aliyun.com示例如下:...
2020-03-25 22:50:33
401
原创 2020-03-24
标准库学习a="$test"repr()函数将a转换后,变成"\$test",转换的角度是对python友好,str()函数转换后,不会发生变化,说明转换的角度是对用户友好
2020-03-24 19:52:15
106
原创 2020-03-10
看项目代码流程第一步:了解整体架构,从技术上把整个流程串联起来第二步:关注流程中数据库、外围系统的交互,搞清楚数据从哪里来,到哪里去,以及与外围系统的集成的每个步骤都在做什么第三步:从关键业务了解业务逻辑,重点与业务逻辑强相关的部分总体思路:整体架构->数据流->业务规则...
2020-03-10 19:57:25
98
原创 2020-03-09
性能测试记录事务的开启、提交、撤回,中间一定要加try exception,如果不加,长期运行时,容易导致事务无法及时回收,出现内存溢出,系统崩溃
2020-03-09 18:08:43
205
软件开发测试必备的常用插件.zip
2020-03-29
基于loadrunner等的Web项目性能测试实战过程分析
2017-10-23
ocr 图像识别插件
2017-10-23
精通Groovy
2016-07-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人