单线程下载文件: import requestsimport timefrom hashlib import md5def down_load_pic(url): req = requests.get(url) m = md5(url.encode()) with open(m.hexdigest( ...
分类:
编程语言 时间:
2020-06-03 16:01:34
阅读次数:
72
数据驱动模式的测试好处相比普通模式的测试就显而易见了吧!使用数据驱动的模式,可以根据业务分解测试数据,只需定义变量,使用外部或者自定义的数据使其参数化,从而避免了使用之前测试脚本中固定的数据。可以将测试脚本与测试数据分离,使得测试脚本在不同数据集合下高度复用。不仅可以增加复杂条件场景的测试覆盖,还可 ...
分类:
编程语言 时间:
2020-06-03 15:16:29
阅读次数:
79
JWT: https://jwt.io/introduction/ 1. 什么是JWT JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between tw ...
分类:
Web程序 时间:
2020-06-03 12:06:28
阅读次数:
75
三个按钮:,btn:[‘拨打‘,‘挂断‘,‘关闭‘]‘拨打‘,‘挂断‘这两个是不同时出现的。vardialog=layer.open({type:2,title:‘拨打电话‘,content:‘customerPhone.jsp‘,maxmin:true,area:layui.setter.area_percent,o
分类:
其他好文 时间:
2020-06-03 10:44:28
阅读次数:
57
系统环境:centos61、需要升级版本libc,误操作导致的2、执行命令都是报错:[root@localhost~]#llls:errorwhileloadingsharedlibraries:libc.so.6:cannotopensharedobjectfile:Nosuchfileordirectory[root@localhost~]#lsls:errorwhileloadingshar
分类:
其他好文 时间:
2020-06-03 09:20:00
阅读次数:
115
lsof list open files Linux一切皆文件,通过文件不仅可以访问常规数据,还可以访问网络连接(套接字)和硬件,该文件描述符为应用程序与os之间提供了接口.lsof需访问各种特权文件,故需root运行 COMMAND contains the first nine characte ...
分类:
系统相关 时间:
2020-06-02 22:52:28
阅读次数:
100
pip install opencv-python 运行demo: import cv2 img = cv2.imread(r"C:\\Users\\wucj\\Desktop\\lion.jpg", 1) cv2.imshow("1", img) cv2.waitKey() ...
分类:
其他好文 时间:
2020-06-02 19:19:44
阅读次数:
74
1 import re 2 3 4 def find_item(hero): 5 # 读取文件 6 with open('sanguo_utf8.txt', encoding='utf-8') as f1: 7 # 去掉内容中的换行,将文本变为一行 8 data = f1.read().replac ...
分类:
编程语言 时间:
2020-06-02 19:06:49
阅读次数:
60
# coding=utf-8 import rsa import base64 def create_keys(): # 生成公钥和私钥 (pubkey, privkey) = rsa.newkeys(1024) pub = pubkey.save_pkcs1() with open('public ...
分类:
编程语言 时间:
2020-06-02 18:52:26
阅读次数:
72
https://solutionsreview.com/business-intelligence/top-free-and-open-source-business-intelligence-software-tools/ Searching for business intelligence a ...
分类:
其他好文 时间:
2020-06-02 17:25:17
阅读次数:
259