2020年9月16日

摘要: 现象: vue+axios调取接口时出现: response to preflight request doesn't pass access control check: no 'access-control-allow-origin' header is present on the reque 阅读全文
posted @ 2020-09-16 09:31 旧楚布衣 阅读(853) 评论(0) 推荐(0) 编辑

2020年5月9日

摘要: def _return_element(self, ele): return self.driver.driver.execute_script("return arguments[0].shadowRoot", ele) def verify_dl(self): """ 返回最近一个下载,目前仅支 阅读全文
posted @ 2020-05-09 19:52 旧楚布衣 阅读(2539) 评论(0) 推荐(0) 编辑

2020年4月23日

摘要: 1. 通过os.walk扫描代码,记录路径; 2. 导入每个测试用例,运行;收集返回值; script_dict = {'test_case01': 'script/module_A/test_case01'} test_conf = {'argsA': 'hw'} run_result = {} 阅读全文
posted @ 2020-04-23 13:19 旧楚布衣 阅读(228) 评论(0) 推荐(0) 编辑

2020年1月16日

摘要: 原因为ubuntu 默认为dash可通过 echo $SHELL 查看解决: sudo usermod -s /bin/bash admin /etc/profile下添加 alias egrep='egrep --color=auto' alias fgrep='fgrep --color=aut 阅读全文
posted @ 2020-01-16 11:44 旧楚布衣 阅读(343) 评论(0) 推荐(0) 编辑

2020年1月14日

摘要: 下载1.16 http://nginx.org/en/download.html 解压执行: ./configure --prefix=/admin/baseTools/nginx2 --with-http_ssl_module --with-http_stub_status_module 报错: 阅读全文
posted @ 2020-01-14 17:10 旧楚布衣 阅读(390) 评论(0) 推荐(0) 编辑

2019年10月12日

摘要: from urllib import request from PIL import Image import io from base64 import b64encode url = '网络图片' r = request.urlopen(url) img_m = io.BytesIO(r.read()) img_get = Image.open(img_m) print(img_ge... 阅读全文
posted @ 2019-10-12 15:32 旧楚布衣 阅读(291) 评论(0) 推荐(0) 编辑

2019年8月6日

摘要: https://blog.csdn.net/zjx2016/article/details/78273192 array方法: 集合方法: array需遍历输出,list可直接输出; 阅读全文
posted @ 2019-08-06 14:51 旧楚布衣 阅读(144) 评论(0) 推荐(0) 编辑

2019年8月2日

摘要: 输出: 结论: 可变对象:list dict set 不可变对象:tuple string int float bool 阅读全文
posted @ 2019-08-02 09:58 旧楚布衣 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 背景: 大量图片,但个图片只是名字不一样,内容一样,需要去重 date;find /home/admin/image -name *.jpeg | xargs md5sum|sort >allfiles;cat allfiles |uniq -w 32 > uniqfiles;comm allfil 阅读全文
posted @ 2019-08-02 09:50 旧楚布衣 阅读(1105) 评论(0) 推荐(0) 编辑
摘要: nginx #打开 nginxnginx -t #测试配置文件是否有语法错误nginx -s reopen #重启Nginxnginx -s reload #重新加载Nginx配置文件,然后以优雅的方式重启Nginxnginx -s stop #强制停止Nginx服务nginx -s quit #优 阅读全文
posted @ 2019-08-02 09:46 旧楚布衣 阅读(6639) 评论(0) 推荐(1) 编辑