摘要: #include<iostream>#include<vector>#include<math.h>#include<string>#include<algorithm>using namespace std;#include<map>#include<stack>#include<unordere 阅读全文
posted @ 2016-11-23 15:46 simple_wxl 阅读(819) 评论(0) 推荐(0) 编辑
摘要: '(0, 2)','(4, 6)','(8, 12)','(15, 20)','(25, 32)','(38, 43)','(48, 53)','(60, 100)' 卷积-relu-pooling-Local Response Normalization (LRN)层 卷积-relu-poolin 阅读全文
posted @ 2016-11-23 10:10 simple_wxl 阅读(819) 评论(0) 推荐(0) 编辑
摘要: /*o(n)的堆化方法*/ void myjust(vector<int>& A,int i){ int l=i*2+1; int r=i*2+2; int minn=i; if(l<A.size()&&A[l]<A[minn]) minn=l; if(r<A.size()&&A[r]<A[minn 阅读全文
posted @ 2016-11-22 16:42 simple_wxl 阅读(258) 评论(0) 推荐(0) 编辑
摘要: python列表推导式 list=[[0 for i in xrange(3)] for j in xrange(4)] 二维数组 g=lambda x,y:x*y; print g(2,9); 阅读全文
posted @ 2016-11-16 15:15 simple_wxl 阅读(1286) 评论(0) 推荐(0) 编辑
摘要: string 和int之间的转换 string转换成int :Integer.valueOf("12") int转换成string : String.valueOf(12) char和int之间的转换 首先将char转换成string String str=String.valueOf('2') I 阅读全文
posted @ 2016-11-15 15:50 simple_wxl 阅读(231562) 评论(2) 推荐(6) 编辑
摘要: java中 Iterator it=wordsmap.entrySet().iterator(); while(it.hasNext()) { Map.Entry<String,Integer> myentry=(Map.Entry<String,Integer>)it.next(); Object 阅读全文
posted @ 2016-11-14 09:10 simple_wxl 阅读(6962) 评论(0) 推荐(0) 编辑
摘要: hashset中的元素 treeset中的元素要实现comparable接口 阅读全文
posted @ 2016-11-11 15:27 simple_wxl 阅读(302) 评论(0) 推荐(0) 编辑
摘要: x=[1,2,3] x.sort()对的,x这个都变了 y=x.sort()错误 y=sorted(x)对的,x拍好序的一个副本 python中用匿名函数和自定义函数排序:(很奇怪的是比较函数返回的是两个值相减就可以,比较大小就不可以 class Interval(object): def __in 阅读全文
posted @ 2016-11-11 09:31 simple_wxl 阅读(917) 评论(0) 推荐(0) 编辑
摘要: int(x [,base ]) 将x转换为一个整数 long(x [,base ]) 将x转换为一个长整数 float(x ) 将x转换到一个浮点数 complex(real [,imag ]) 创建一个复数 str(x ) 将对象 x 转换为字符串 repr(x ) 将对象 x 转换为表达式字符串 阅读全文
posted @ 2016-11-09 14:20 simple_wxl 阅读(501508) 评论(3) 推荐(10) 编辑
摘要: 来源于:http://www.cnblogs.com/hasse/p/5023392.html 这几天看到类在继承时会用到this和super,这里就做了一点总结,与各位共同交流,有错误请各位指正~ this this是自身的一个对象,代表对象本身,可以理解为:指向对象本身的一个指针。 this的用 阅读全文
posted @ 2016-11-07 14:46 simple_wxl 阅读(821) 评论(0) 推荐(0) 编辑