CSDN博客地址
上一页 1 2 3 4 5 6 7 ··· 21 下一页
摘要: 在性能测试/压力测试时,我们需要对服务器内存及redis的变化进行监控,来判断测试过程中服务器是否承受住这些压力。 1:安装easyNomon 下载地址:https://github.com/mzky/easyNmon/releases 将下载好的文件解压,并进入解压之后的目录,执行: nohup 阅读全文
posted @ 2020-07-08 11:09 Yi_warmth 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 对数据库进行定时备份,保留7天内的数据。代码... 阅读全文
posted @ 2020-07-08 10:16 Yi_warmth 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Selenium是一个Web的自动化测试工具... 阅读全文
posted @ 2020-07-07 10:59 Yi_warmth 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 图像腐蚀 1.基础理论 形态学转换主要针对的是二值图像(0/1)图像类似于领域被蚕食,将图像中的高亮区域白色部分进行缩减细化,其运行结果图比原图的高亮区域更小。主要包括两个输入对对象: 二值图像,卷积核(卷积核是腐蚀中的关键数组,采用numpy库组成)卷积核的中心点逐个像素扫描原始图像。 被扫描到的 阅读全文
posted @ 2020-07-05 16:29 Yi_warmth 阅读(704) 评论(0) 推荐(0) 编辑
摘要: 实现登陆功能的单元测试 验证参数有效性函数 def login_check(username, password): """ :param username: 登陆用户名 :param password: 登陆密码 :return: """ if 6 <= len(password) <= 18: 阅读全文
posted @ 2020-06-23 14:34 Yi_warmth 阅读(284) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- from reportlab.lib.pagesizes import portrait from reportlab.pdfgen import canvas from PIL import Image def jpg_to_pdf(jpg, pdf 阅读全文
posted @ 2020-06-22 19:40 Yi_warmth 阅读(4148) 评论(1) 推荐(0) 编辑
摘要: import simplejson import anyjson # 序列化: 把变量从内存中变成可存储或可传输的过程 def any_1(): # 序列化 info = {"a": 1, "b": 2} result = anyjson.serialize(info) f = open("file 阅读全文
posted @ 2020-06-19 20:01 Yi_warmth 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 使用场景:1) 爬虫设置ip代理池时验证i... 阅读全文
posted @ 2020-06-18 15:59 Yi_warmth 阅读(2072) 评论(0) 推荐(0) 编辑
摘要: # 线程锁套线程锁,即为递归锁 import threading def run1(): print("grab the first part data") lock.acquire() global num num += 1 lock.release() return num def run2() 阅读全文
posted @ 2020-06-18 14:31 Yi_warmth 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 图像的二值化或阈值化(Binarization)旨在提取图像中的目标物体,将背景以及噪声区分开来。通常会设定一个阈值T,通过T将图像的像素划分为两类:大于T的像素群和小于T的像素群。灰度转换处理后的图像中,每个像素都只有一个灰度值,其大小表示明暗程度。二值化处理可以将图像中的像素划分为两类颜色,常用 阅读全文
posted @ 2020-06-16 22:13 Yi_warmth 阅读(672) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 21 下一页
CSDN博客地址