一:12格结构 二: Hello, world! 区域一 Bootstrap has a few easy ways to quickly get started, each one appealing to a different skill level and use case....
分类:
Web程序 时间:
2014-08-10 12:53:10
阅读次数:
246
Installing scikit-learnhttp://scikit-learn.org/stable/install.htmlInstalling scikit-learnThere are different ways to get scikit-learn installed:Instal...
分类:
其他好文 时间:
2014-08-08 17:19:57
阅读次数:
407
http://acm.hdu.edu.cn/showproblem.php?pid=2157
给定一个有向图,问从A点恰好走k步(允许重复经过边)到达B点的方案数mod p的值
把给定的图转为邻接矩阵,即A(i,j)=1当且仅当存在一条边i->j。令C=A*A,那么C(i,j)=ΣA(i,k)*A(k,j),实际上就等于从点i到点j恰好经过2条边的路径数(枚举k为中转点)。...
分类:
其他好文 时间:
2014-08-08 09:43:05
阅读次数:
201
题目:A message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message....
分类:
编程语言 时间:
2014-08-07 05:11:09
阅读次数:
247
http://msdn.microsoft.com/en-us/library/hh156548(v=vs.110).aspxThe .NET Framework provides several ways for you to use multiple threads of execution t...
分类:
Web程序 时间:
2014-08-06 18:44:02
阅读次数:
364
其实列转行是比较简单的用sum和decode函数就可以了,但是我遇到的项目,不知道数据谁设计的居然字段里面还设计成long类型,此long类型与java中的不同,oracle中的long是指可变长二进制数据,最长2G,哎没办法只好转换了。以下是hsqldb的转换,用到了转换函数convert,可以将lon..
分类:
数据库 时间:
2014-08-05 22:54:40
阅读次数:
288
首先:中文->unicode字符串importchardetimportcodecs>>>a="我是一个中国人">>>a‘\xce\xd2\xca\xc7\xd2\xbb\xb8\xf6\xd6\xd0\xb9\xfa\xc8\xcb‘>>>chardet.detect(a){‘confidence‘:0.99,‘encoding‘:‘GB2312‘}>>>b=a.decode(‘GB2312‘)>..
分类:
编程语言 时间:
2014-08-05 11:34:40
阅读次数:
197
// 加密传入的数据是byte类型的,并非使用decode方法将原始数据转二进制,String类型的数据 使用 str.getBytes()即可
String str = "Hello!";
// 在这里使用的是encode方式,返回的是byte类型加密数据,可使用new String转为String类型
String strBase64 = new String(Base64.enc...
分类:
移动开发 时间:
2014-08-05 11:16:59
阅读次数:
228
Python2.7在Windows上一个bug,UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 33: ordinal not in range(128)...
分类:
编程语言 时间:
2014-08-04 14:33:57
阅读次数:
426