- 博客(8)
- 收藏
- 关注
转载 Python3伪装浏览器爬虫读取网页内容
原文链接有些网站加了保护,CSDN、***、等等很多网站都这样,这就必须要伪装浏览器正常访问了,类似蜘蛛爬虫一样,那么只有给代码加上一个Header,再试试读取HTML。 声明:以下代码在Python 3.3中编写调试完成! 原来想这样实现:?1234import
2015-02-22 14:41:22
795
原创 C++ RTTI 与四种强制类型转换符
RTTI提供了以下两个非常有用的操作符: (1)typeid操作符,返回指针和引用所指的实际类型; (2)dynamic_cast操作符,将基类类型的指针或引用安全地转换为派生类型的指针或引用。
2014-07-07 12:32:50
517
原创 c语言中longjmp的个人心得
先贴出一段代码#include #include void subroutine(jmp_buf jumper){ printf("subroutine called.\n"); longjmp(jumper, 1);}int main(){ int value = 0; /*volatile*/ int temp = 0; //测试变量 j
2014-05-02 19:00:00
870
原创 谷歌面试题:给定头结点和当前结点,删除当前结点
/***************************************函数功能:给定头结点和当前结点,删除当前结点*复杂度:O(1)*说明:谷歌广为流传的面试题,根据相关思路自己实现的代码**************************************/#include #include typedef int Datatype;typedef stru
2014-04-28 23:25:16
435
原创 寻找输入的回文字符串并输出!!
#include #include #include #define MAXSIZE 1024#define PARTION 0 //include the partion of symmetry#define NUMBER 1 // easy to find the stringusing namespace std;//look for the same char and
2014-04-26 20:39:34
768
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人