Scrapy的初步认识 Scrapy使用了Twisted作为框架,Twisted有些特殊的地方是它是事件驱动的,并且比较适合异步的代码。对于会阻塞线程的操作包含访问文件、数据库或者Web、产生新的进程并需要处理新进程的输出(如运行shell命令)、执行系统层次操作的代码(如等待系统队列),Twist ...
分类:
其他好文 时间:
2020-01-01 17:09:48
阅读次数:
79
#include<stdio.h> #include<iostream>#define CORRECT "myfirst" int main() { char str[10]; int func(char* str1, char* str2); printf("输出你最喜欢的:\n"); scanf ...
分类:
编程语言 时间:
2020-01-01 16:40:12
阅读次数:
106
1.##:用于拼接操作 实例: #include<stdio.h> #include<iostream> #define CONCAT(parm1,parm2) (parm1##parm2) int main() { int res = CONCAT(1, 2); printf("%d\n", re ...
分类:
编程语言 时间:
2020-01-01 16:35:58
阅读次数:
95
《C++反汇编与逆向分析》和《程序员的自我修养》都是以VC6的代码作为例子讲解的。这里是在vs2017下,CRT代码有些区别,但整体流程上都是初始化环境,设置参数,最后转到用户main函数。 class COne { public: COne() { printf("COne \r\n"); } ~ ...
分类:
编程语言 时间:
2020-01-01 16:35:03
阅读次数:
231
#include<stdio.h> #include<iostream> int main() { char* str[10]; printf("请输入:\n"); scanf("%s\n", str); printf("您的输入是:%s\n",str); system("pause"); retu ...
分类:
编程语言 时间:
2020-01-01 16:28:57
阅读次数:
78
sscanf():可以将一个长的字符串按照需求分割成想要的格式 实例: #include<stdio.h> #include<string.h> int main() { //1. 取指定长度的字符串 char str[100]; sscanf("12345","%4s",str); printf( ...
分类:
编程语言 时间:
2020-01-01 14:58:05
阅读次数:
107
钩子功能 该功能其实是依据脚本实现,该脚本的写法是shell 是一样的 。 钩子脚本就是对某些版本库触发的程序 。 类似 inotify 钩子的目录 在每一个svn的项目工程库下面。 里面会有模板。 [root@localhost sadoc]# pwd/application/svndata/sa ...
分类:
其他好文 时间:
2020-01-01 13:40:02
阅读次数:
79
1.新建一个文本编译器 vim test.sh 2. 按"i"键入插入模式 输入 表示解释注释内容 注意不同类型或内容的代码用两行空格间隔,方便阅读理解 3.按"Esc"退出插入模式。输入":wq"保存退出 4.运行命令: sh test.sh 5.另外还可以这样执行 赋予执行权限,直接./test ...
分类:
系统相关 时间:
2020-01-01 13:25:18
阅读次数:
76
改了之后是可以正常运行的 #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { ...
分类:
其他好文 时间:
2020-01-01 12:06:41
阅读次数:
77