原文:http://blog.csdn.net/boksic/article/details/16870453 import urllib2 import timeit import thread import time i = 0 x = 0 mylock = thread.allocate_lo ...
分类:
编程语言 时间:
2017-06-19 12:58:25
阅读次数:
180
public class LurCache { private final LinkedHashMap map; private int size; // 已经存储的大小 private int maxSize; // 规定的最大存储空间 private int putCount; // put的次... ...
分类:
移动开发 时间:
2017-06-19 12:56:34
阅读次数:
159
+ (NSArray*)getRGBAsFromImage:(UIImage*)image atX:(int)x andY:(int)y count:(int)count { NSMutableArray *result = [NSMutableArray arrayWithCapacity:cou ...
分类:
其他好文 时间:
2017-06-19 12:55:32
阅读次数:
193
/* 本程序打印EOF的值 */ #include int main(int argc,char* argv[],char* env) { printf("EOF = %d",EOF); getc(stdin); return 0; } ...
分类:
编程语言 时间:
2017-06-19 12:55:04
阅读次数:
138
#include #include using namespace std; #define MAX_LENGTH_INSERT_SORT 7 #define MAXSIZE 10 void ISort( int k[], int n ) { int i, j,temp; for( i=1; i t... ...
分类:
编程语言 时间:
2017-06-19 12:54:36
阅读次数:
199
public class NetAddrUtil { /** * 从url中分析出hostIP<br/> * @param url * @author wull * @return */ public static String getIpFromUrl(String url) { // 1.判断是 ...
分类:
编程语言 时间:
2017-06-19 12:52:51
阅读次数:
224
1 /* 2 IntToStr: 将整型数据转换为字符串 3 */ 4 5 #include 6 7 8 void int_to_str(const unsigned long int i_number, char *str); 9 10 int main(int argc,char*argv[])... ...
分类:
编程语言 时间:
2017-06-19 12:52:40
阅读次数:
168
微信移动端数据库组件WCDB系列(一)-iOS基础篇 2017-05-25 sanhuazhang 腾讯Bugly 本文来自:微信移动客户端开发团队公众号(WeMobileDev) 前言 WCDB(WeChat DataBase)是微信官方的移动端数据库组件,致力于提供一个高效、易用、完整的移动端存 ...
分类:
微信 时间:
2017-06-19 11:03:14
阅读次数:
495
1 /** 2 * 获取IP 3 * strcasecmp 比较函数 4 */ 5 if (!function_exists('get_ip')) { 6 7 function get_ip($outType = 'int') { 8 if (getenv('HTTP_CLIENT_IP') && ... ...
分类:
其他好文 时间:
2017-06-19 11:00:28
阅读次数:
154
+=的实现是通过__iadd__实现的,如果类中没有实现__iadd__方法,那么就会调用__add__方法; 可变序列:调用的是__iadd__方法; 不可变序列:调用的是__add__方法; +和*操作都会先创建新的对象,然后做拼接操作; __iadd__不会创建新的序列,而是在原来的序列上做增 ...
分类:
其他好文 时间:
2017-06-19 10:57:05
阅读次数:
148