#include #include #include #include #include using namespace std;//stringstream只是一个中转的作用,因为write_json还是read_json操作的是stringstream.void packetage(char**...
分类:
Web程序 时间:
2014-09-14 22:06:17
阅读次数:
300
小玩一下python强大的库文件,调api获取天气情况#coding:utf-8import urllibimport jsoncontent = urllib.urlopen('http://m.weather.com.cn/data/101040100.html').read()s = json...
分类:
编程语言 时间:
2014-09-14 19:14:57
阅读次数:
229
有些时候你的工程会用到第三方库,比如你会用到一个叫libxxx库,,编译和安装后,你通常会在/usr/local/lib和/usr/local/include/目录下发现有xxx/目录,但是很多时候你在代码中引用libxxx库的头文件时,声明如下:#include 你的代码写好后,你编译时会出现:fatal error: xxx.h: 没有那个文件或目录亦或者是:error: 对'xxx_read...
分类:
其他好文 时间:
2014-09-14 15:26:57
阅读次数:
224
官方定义:JSON(JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to pa...
分类:
Web程序 时间:
2014-09-14 12:37:17
阅读次数:
211
注册机使用说明: Install Instructions: (Read carefully!) 安装说明(仔细阅读!) 1. Disable your Network card or pull the network cable. 禁用网络或拔出网线 2. Install Acrobat Pro ...
分类:
其他好文 时间:
2014-09-14 11:14:16
阅读次数:
335
访问不需要验证的远程资源下载数据,使用urlretrieve() 1 #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 3 4 import urllib 5 6 def report(blocks_read,block_size,total_siz.....
分类:
编程语言 时间:
2014-09-13 18:28:35
阅读次数:
183
自:http://game.ceeger.com/forum/read.php?tid=13479如果你的工程只能以.Net 2.0而不能以.Net 2.0 subset运行,请看另外一个方法。地址:http://game.ceeger.com/forum/read.php?tid=13479&fi...
分类:
移动开发 时间:
2014-09-13 13:21:45
阅读次数:
283
自:http://game.ceeger.com/forum/read.php?tid=13479如果你的工程可以以.Net 2.0 subset模式运行,请看这个帖子中的方法。地址:http://game.ceeger.com/forum/read.php?tid=14359&fid=27如果只能...
分类:
移动开发 时间:
2014-09-13 13:21:35
阅读次数:
516
1、基本读取read命令接收标准输入(键盘)的输入,或其他文件描述符的输入(后面在说)。得到输入后,read命令将数据放入一个标准变量中。下面是 read命令的最简单形式::#!/bin/bashecho -n "Enter your name:" //参数-n的作用是不换行,echo默认是换行re...
分类:
系统相关 时间:
2014-09-13 13:21:06
阅读次数:
248
1. 并发技术由于需要页高速缓存是全局的,各进程不停的访问,必须要考虑其并发性能,单纯的对一棵树使用锁导致的大量争用是不能满足速度需要的,Linux中是在遍历树的时候采用一种RCU技术,来实现同步并发。RCU(Read-Copy Update),是一种保证读该radix tree的时候,可以不要管i...
分类:
系统相关 时间:
2014-09-12 23:22:34
阅读次数:
420