2015年9月24日

ubuntu14.04下安装爬虫工具scrapy

摘要: scrapy是目前准备要学习的爬虫框架,其在ubuntu14.04下的安装过程如下:ubuntu14.04下默认安装了2.7的python以及setuptools,若未安装,可通过下面指令安装:sudo apt-get install pythonsudo apt-get install pytho... 阅读全文

posted @ 2015-09-24 21:34 caiminfeng 阅读(940) 评论(0) 推荐(0) 编辑

C++中template的.h文件和.cpp文件的问题

摘要: 在C++中,用到类模板时,如果类似一般的类声明定义一样,把类声明放在.h文件中,而具体的函数定义放在.cpp文件中的话,会发现编译器会报错。如类似下面代码://test.h文件#ifndef TEST_H_#define TEST_H_template class test{private: ... 阅读全文

posted @ 2015-09-24 17:04 caiminfeng 阅读(6276) 评论(0) 推荐(0) 编辑

导航