Read the HOPE model paper.Collect the character statistics of a news corpus to do classification. Libsvm is still running.Modify iKids code.Start read...
分类:
其他好文 时间:
2015-03-09 00:26:16
阅读次数:
120
一.字节流 1.InputStream/OutputStream(输入流与输出流几乎一一对应) 读取的方法 int read() int read(byte[] buffer) int read(byte[] buffer,int offset,int length) 2.各种类的区分,常用的9种(...
分类:
编程语言 时间:
2015-03-09 00:23:22
阅读次数:
167
官方有题解,基本思路就是官方题解那样了
http://bestcoder.hdu.edu.cn/
B题用set+读入挂是可以卡时间过的,不过还是用HASH效率会比较高
代码:
A:
#include
#include
#include
using namespace std;
struct C {
int a, b, id;
void read() {
...
分类:
其他好文 时间:
2015-03-08 20:13:40
阅读次数:
249
If Self-inferiority is disease, but self-confidence is hazard.Leo moon personalities can be extremely stubborn.Please read text below You got a new...
分类:
其他好文 时间:
2015-03-08 12:55:06
阅读次数:
152
源:CNUOJ-0384http://oj.cnuschool.org.cn/oj/home/problem.htm?problemID=354题目分析:当时拿到这道题第一个想法就是排序后n^2暴力枚举,充分利用好有序这一特性随时“短路”。 1 read(n);read(m); 2 int ...
分类:
其他好文 时间:
2015-03-08 10:25:54
阅读次数:
193
linux C/C++:文件操作--open、create、close
文件描述符
内核(kernel)利用文件描述符(file descriptor)来访问文件。文件描述符是非负整数。打开现存文件或新建文件时,内核会返回一个文件描述符。读写文件也需要使用文件描述符来指定待读写的文件。系统内核会为每一个进程维护一份文件描述符表。如下:...
分类:
编程语言 时间:
2015-03-08 00:07:59
阅读次数:
302
##安装## `sudo pip install pyquery` ##例子## ``` from pyquery import PyQuery import urllib2 page = urllib2.urlopen("http://www.lzu.edu.cn") text = unicode(page.read(), "utf-8") doc = PyQuery(text) ...
分类:
Web程序 时间:
2015-03-07 14:21:17
阅读次数:
470
SQL标准定义了4类隔离级别,包括了一些具体规则,用来限定事务内外的哪些改变是可见的,哪些是不可见的。低级别的隔离级一般支持更高的并发处理,并拥有更低的系统开销。Read Uncommitted(读取未提交内容)在该隔离级别,所有事务都可以看到其他未提交事务的执行结果。本隔离级别很少用于实际应用.....
分类:
数据库 时间:
2015-03-07 11:30:43
阅读次数:
304
python re模块还是需要重新学习。
python readline 和 readlines(), readline() , read() 三者之间的区别,以前一直都不清楚,现在搞清楚是怎么回事了。
readlines() 可以一起显示出整个文件,这个也是迭代显示的,需要追行显示,迭代器的指针会被消耗的。
python 中的正则是匹配换行以外的所有的字符。.* 是匹配不了所有的字符的。在...
分类:
编程语言 时间:
2015-03-07 01:05:12
阅读次数:
266
原文网址:http://blog.sina.com.cn/s/blog_623a7fa40100hh1u.htmlCFile提供了一些常用的操作函数,如表1-2所示。表1-2CFile操作函数函数含义Open打开文件Close关闭文件Flush刷新待写的数据Read从当前位置读取数据Write向当前...
分类:
编程语言 时间:
2015-03-06 21:59:02
阅读次数:
269