# ,写函数,传入n个数,返回字典{‘max’:最大值,’min’:最小值}# 例如:min_max(2,5,7,8,4) 返回:{‘max’:8,’min’:2}(此题用到max(),min()内置函数)# def func(*args):# mo = args[0] #假设一个最大值# mi = args[0] #假设一个最小值# for el in args:# if el > mo: # 当前这个元素比假设的那个大. 记录当前这个比较大的数# mo = el# if el < mi:#
1.用DBA登录赋权限create or replace directory D_OUTPUT as 'D:\TEMP'; grant read,write on directory D_OUTPUT to testdb; GRANT EXECUTE ON utl_file TO testdb; 2.写一个函数创建目录并写入数据在数据清洗的存储过程中调用函数首先在上边声明变量 xx varchar2(1000);然后在执行插入失败的下面调用函数 else --insert into fail_l
java中在多态的实现是通过类的继承或者接口的实现来完成的. 在类继承或者接口实现过程中就会涉及到成员属性以及成员函数的重写,需要注意的是,成员函数的重写是直接覆盖父类的(继承中),但是成员变量重写是不会进行覆盖的. 举个类子: 两个类Person以及Man: 都有相同名称的属性age以及相同名称的方法say(); public class Person { public int age; public void say() { System.out.println("person say...
为了提升自己对Opencv中Mat数据类型的熟悉和掌握程度,自己尝试着写了一下Laplace图像锐化函数,一路坎坷,踩坑不断.现将代码分享如下: #include <opencv2/opencv.hpp> #include <iostream> using namespace std; using namespace cv; //Laplace滤波锐化图像 void myLaplace(Mat Src, Mat Tem, Mat Dst) { int SrcH = Src.rows
一.膨胀腐蚀学习笔记 二.代码及结果分享 #include <opencv2/opencv.hpp> #include <iostream> using namespace std; using namespace cv; //定义腐蚀函数 void myErode(Mat Src, Mat Tem, Mat Dst) { int m = (Tem.rows - 1) / 2; int n = (Tem.cols - 1) / 2; for (int i = m; i < S