码迷,mamicode.com
首页 >  
搜索关键字:return    ( 60766个结果
【20160924】GOCVHelper 图像增强部分(2)
//填充孔洞 //fillholes Mat fillHoles(Mat src){ Mat dst = getInnerHoles(src); threshold(dst,dst,0,255,THRESH_BINARY_INV); dst = src + dst; return dst; } /.... ...
分类:其他好文   时间:2016-09-25 23:33:00    阅读次数:366
回车和换行在linux下和windows下
今天,我总算搞清楚"回车"(carriage return)和"换行"(line feed)这两个概念的来历和区别了。 1. 在计算机还没有出现之前,有一种叫做电传打字机(Teletype Model 33)的玩意,每秒钟可以打10个字符。但是它有一个问题,就是打完一行换行的时候,要用去0.2秒,正 ...
分类:Windows程序   时间:2016-09-25 20:41:56    阅读次数:168
c#中 override 和overload 的区别
重载应该叫overload,重写叫override;重载某个方法是在同一个类中发生的!重写是在子类中重写父类中的方法。 1.override: 父类:public virtual string ToString(){return "a";} 子类:public override string ToS ...
分类:Windows程序   时间:2016-09-25 17:08:51    阅读次数:173
angularJs指令深度分析
AngularJs的指令定义大致如下 angular.module("app",[]).directive("directiveName",function(){ })其中return返回的对象包含很多参数,下面一一说明 你知道用AngularJs怎么定义指令吗? 1.restrict (字符串)可 ...
分类:Web程序   时间:2016-09-25 15:59:34    阅读次数:263
lambda表达式
def f1 (a1): return a1+100ret=f1(10)print(ret)f2=lambda a1:a1+100 #这样跟上面的方式结果是一样的...lambda前面f2是函数名,冒号前面是参数,冒号后面是函数体,函数体是默认给你return的ret=f2(9)print(ret) ...
分类:其他好文   时间:2016-09-25 13:11:45    阅读次数:116
全局变量,,
#def f1 (a1,b1): # return a1+b1#def f1 (a1,b1): # return a1*b1#ret=f1(8,8)#print(ret)#python的程序是从上到下依次执行#def f1(a1):#python 实际参数给形式参数传值传的是引用。 #li=[11, ...
分类:其他好文   时间:2016-09-25 13:11:42    阅读次数:112
338. Counting Bits
// My own solutionclass Solution { public: vector<int> countBits(int num) { vector<int> ret = {0}; if(num <= 0) return ret; ret.push_back(1); int i = ...
分类:其他好文   时间:2016-09-25 13:09:08    阅读次数:122
347. Top K Frequent Elements
Given a non-empty array of integers, return the k most frequent elements. For example,Given [1,1,1,2,2,3] and k = 2, return [1,2]. Note: You may assum ...
分类:其他好文   时间:2016-09-25 07:25:46    阅读次数:124
345. Reverse Vowels of a String
Write a function that takes a string as input and reverse only the vowels of a string. Example 1:Given s = "hello", return "holle". Example 2:Given s ...
分类:其他好文   时间:2016-09-25 06:16:19    阅读次数:147
16. 3Sum Closest
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. ...
分类:其他好文   时间:2016-09-25 06:16:16    阅读次数:148
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!