摘要: from gmssl import sm2,sm4 import base64 class SM4(): def __init__(self, key, iv="12345678"): self.key = key self.iv = iv def encrypt(self,text): """ 加 阅读全文
posted @ 2024-06-26 09:44 **绵绵羊** 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 一、jmeter中的常用计算公式 1.Ramp-Up时间:Number of Threads(线程数) / Ramp-Up,a56爆大奖在线娱乐a56爆大奖在线娱乐请求间的间隔时间,当Ramp-Up 为0时a56爆大奖在线娱乐同时并发 2.TPS=完成的事务数据 / 完成这些事务数所费时间(当使用了事务控制器);TPS=完成的请求数 / 完成这些 阅读全文
posted @ 2023-11-29 17:41 **绵绵羊** 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 创建单个进程示例: from multiprocessing import Processimport time def add(a, b): print("starting to job") print(a + b) time.sleep(1) print("stoping to job") if 阅读全文
posted @ 2023-09-06 16:40 **绵绵羊** 阅读(7) 评论(0) 推荐(0) 编辑
摘要: import gevent from gevent import monkey monkey.patch_all() from minio import Minio import time, random import uuid def get_client(): """ 连接minio :retu 阅读全文
posted @ 2023-06-27 18:12 **绵绵羊** 阅读(424) 评论(0) 推荐(0) 编辑
摘要: canndy_test.py import cv2 import numpy as np def matchImg(imgPath1, imgPath2): imgs = [] # 原始图像,用于展示 sou_img1 = cv2.imread(imgPath1) sou_img2 = cv2.im 阅读全文
posted @ 2023-06-09 17:00 **绵绵羊** 阅读(503) 评论(0) 推荐(0) 编辑
摘要: from minio import Minio from multiprocessing import Process import time def upload_file(): # 创建minio客户端 client = Minio(endpoint="xxx.xxx.xxx.xxx:xxx", 阅读全文
posted @ 2023-06-08 09:40 **绵绵羊** 阅读(412) 评论(0) 推荐(0) 编辑
摘要: from minio import Minio file_name = '3e09ca66d9444906935b0171e26891f1.mp4' file_path = r'E:\集成资料\视频素材' barrel = "testdata" def upload_file(): # 创建mini 阅读全文
posted @ 2023-06-08 09:39 **绵绵羊** 阅读(1729) 评论(0) 推荐(0) 编辑
摘要: 问题: 通过cd 进入jmeter 目录中,执行脚本 bin/jmeter -n -t xxxxx.jmx -l ../50.jtl出现以下问题 解决方法: 修改文件权限 chmod +x bin/jmeter 修改后再次执行可正常启动 阅读全文
posted @ 2023-06-07 16:54 **绵绵羊** 阅读(350) 评论(0) 推荐(0) 编辑
摘要: server: 当调用http://xxx.xxx.xxx.xxx:4500/push时就会触发get_push函数 from bottle import run, route, request import logging import time import os filename = str( 阅读全文
posted @ 2023-02-09 19:54 **绵绵羊** 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 一.在Linux中搭建mqtt服务 环境:Linux 版本Ubuntu 18.04.1 LTS 1.进入https://www.emqx.com/zh/try?product=broker下载开源版本 EMQX 此处选择zip格式 2.下载后将emqx-4.4.14-otp24.3.4.2-1-ub 阅读全文
posted @ 2023-02-09 19:17 **绵绵羊** 阅读(1307) 评论(0) 推荐(0) 编辑