重要的是理解霍夫圆变换过程:https://en.wikipedia.org/wiki/Circle_Hough_Transform import cv2 as cv im = cv.imread('../result_25k.png', cv.IMREAD_COLOR) im_gray = cv. ...
分类:
编程语言 时间:
2020-06-29 15:25:12
阅读次数:
131
示例 @contextlib.contextmanager def result(a): print('before') yield print('after') 外层装饰源码 包装func函数,真实调用func()时,返回的为_GeneratorContextManager对象 def conte ...
分类:
其他好文 时间:
2020-06-29 13:42:44
阅读次数:
45
back_log 该值指出在MySQL暂时停止回答新请求之前的短时间内多少个请求可以被存在堆栈中。也就是说,如果MySql的连接数据达到max_connections时,新来的请求将会被存在堆栈中,以等待某一连接释放资源,该堆栈的数量即back_log,如果等待连接的数量超过back_log,将不被 ...
分类:
数据库 时间:
2020-06-29 11:33:59
阅读次数:
48
在jsp中获取数据库数据 <% Class.forName("com.mysql.jdbc.Driver");//加载mysql驱动 Connection conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/test1", "r ...
分类:
数据库 时间:
2020-06-29 09:37:42
阅读次数:
71
一、maven依赖 <!-- 操作sqlite数据库 start--> <!-- https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc --> <dependency> <groupId>org.xerial</groupId> <art ...
分类:
数据库 时间:
2020-06-29 09:28:15
阅读次数:
69
在conftest.py中实现 # coding:utf-8 import pytest from datetime import datetime from py._xmlgen import html import pytest @pytest.mark.optionalhook def pyt ...
分类:
Web程序 时间:
2020-06-29 00:20:17
阅读次数:
212
数据驱动: data=[(1,1,2),(2,2,4),(3,3,9)] def execute(t): result=0 for i in t[:-1]: result+=i return result if __name__=="__main__": for i in data: actual_ ...
分类:
其他好文 时间:
2020-06-28 20:28:43
阅读次数:
50
错误信息 Cannot resolve method Void .ctor(Int32, Int32, System.Decimal, System.Decimal) because the declaring type of the method handle System.ValueTuple` ...
分类:
Web程序 时间:
2020-06-28 18:38:02
阅读次数:
69
BGPConnectionCollisionDetection(RFC4271)IfapairofBGPspeakerstrytoestablishaBGPconnectionwitheachothersimultaneously,thentwoparallelconnectionswellbeformed.IfthesourceIPaddressusedbyoneoftheseconnectio
分类:
其他好文 时间:
2020-06-28 16:46:04
阅读次数:
83
1、当同一个xml映射文件内存在两个相同的id(即两个sql语句的id相同)时会报此错 解决:查询sql语句的id值修改 2、在mybatis的配置文件mybatis.xml内使用了<mapper/>标签加载xxxMapper.xml的映射文件报错,因为如果xxxMapper.xml与namespa ...
分类:
其他好文 时间:
2020-06-28 14:54:40
阅读次数:
108