debug版本 esp 栈顶指针 ebp 存放堆栈指针 空程序:int main(){00411360 push ebp ;压入ebp00411361 mov ebp,esp ;ebp = esp,保留esp,待函数调用完再恢复,因为函数调用中肯定会用到esp.00411363 sub esp,0C ...
分类:
其他好文 时间:
2016-06-25 06:13:03
阅读次数:
231
面向对象初级篇面向对象进阶篇一、isinstance(obj, cls) 检查是否obj是否是类 cls 的对象 1 2 3 4 5 6 class Foo(object): pass obj = Foo() isinstance(obj, Foo) 二、issubclass(sub, super) ...
分类:
编程语言 时间:
2016-06-25 00:49:23
阅读次数:
271
1.上标文本标签:<sup>/<sup> 2.下标文本标签:<sub></sub> 3.案例代码 4.案例截图 在网页中如果要把文字合理的显示出来,离不开段落标记的使用。对网页中文字段落进行排版,并不像编辑软件那样简单,在网页中要使某一段文字放在特定的位置就要使用HYML标记来实现。 ...
分类:
Web程序 时间:
2016-06-24 20:28:29
阅读次数:
137
今天早上刷微博,看到LeetCode中国微博发了一条题目,是求解二维数组中子矩阵元素和的最大值。想到已经很久没做题练练手了,于是想试试。LeetCode上,该题目的地址为:https://leetcode.com/problems/max-sum-of-sub-matrix-no-larger-than-k/...
分类:
其他好文 时间:
2016-06-24 15:47:59
阅读次数:
401
nginx1.8.0安装#!/bin/bash
#installnginx-1.8.0.tar.gz
//源码包放在/usr/local/src目录下
cd/usr/local/src
tarxzvfnginx-1.8.0.tar.gz
cdnginx-1.8.0
./configure--prefix=/usr/local/nginx--with-http_realip_module--with-http_sub_module--with-http_gzip_static_modu..
分类:
其他好文 时间:
2016-06-23 19:12:04
阅读次数:
245
nginx1.8.0安装#!/bin/bash
#installnginx-1.8.0.tar.gz
//源码包放在/usr/local/src目录下
cd/usr/local/src
tarxzvfnginx-1.8.0.tar.gz
cdnginx-1.8.0
./configure--prefix=/usr/local/nginx--with-http_realip_module--with-http_sub_module--with-http_gzip_static_modu..
分类:
其他好文 时间:
2016-06-23 19:11:43
阅读次数:
189
一、Key Key命令速查: 二、String String命令速查: 三、Hash Hash命令速查: 四、List List命令速查: 五、Set Set命令速查 六、SortedSet SortedSet命令速查: 七、Pub/Sub Pub/Sub命令速查: 八、Transaction Tr ...
分类:
其他好文 时间:
2016-06-23 11:04:24
阅读次数:
203
intm_strstr(constchar*dst,constchar*sub){ if(dst==NULL||sub==NULL) returnNULL; intd_length=strlen(dst)+1; ints_length=strlen(sub)+1; intdst_index; intsub_index; intj; for(dst_index=0;dst_index<d_length;++dst_index) { sub_index=0; if(dst[dst_index]==su..
分类:
编程语言 时间:
2016-06-19 18:39:00
阅读次数:
181
position的默认值是static,(也就是说对于任意一个元素,如果没有定义它的position属性,那么它的position:static) 如果你想让这个#demo里的一个div#sub相对于#demo定位在右上角的某个地方,应该给#demo相对定位,#sub绝对定位。 absolute是相 ...
分类:
其他好文 时间:
2016-06-18 22:26:07
阅读次数:
121
cd/usr/local/srcwgethttp://nginx.org/download/nginx-1.8.0.tar.gztar-xvzfnginx-1.8.0.tar.gz#-----安装pcrepcre-develyuminstall-ypcrepcre-devel配置编译选项cdnginx-1.8.0./configure\--prefix=/usr/local/nginx\--with-http_realip_module\--with-http_sub_module\--wit..
分类:
其他好文 时间:
2016-06-17 19:45:31
阅读次数:
194