with语句,函数,列表推导,集合,排序,字符分割的应用,set(),sorted(),split()
分类:
编程语言 时间:
2014-05-22 05:15:55
阅读次数:
264
在VS里下载安装:Json.NET
5.0.6http://www.nuget.org/packages/Newtonsoft.Json/5.0.6反序列化json字符串为List:json字符串如下:
1 {"docs": [{ 2 "uid": 2629577, 3 ...
分类:
Web程序 时间:
2014-05-22 04:59:00
阅读次数:
484
1 对象public class Person { public string Name { get;
set; } public int Age { get...
分类:
Web程序 时间:
2014-05-22 04:26:03
阅读次数:
399
一、准备工作1.sudo apt-get install python-numpy2.sudo
apt-get install python2.6-dev3.sudo apt-get install libpng12-dev4.sudo apt-get
install libfreetype6-de...
分类:
编程语言 时间:
2014-05-22 04:13:09
阅读次数:
314
--yum install$sudo yum install email--easy
install$sudo easy_install requests boto--python install$ easy_install
requests--apt-get installsudo apt-get...
分类:
系统相关 时间:
2014-05-22 03:54:14
阅读次数:
405
Verify post-order sequence of binary search tree.
分类:
其他好文 时间:
2014-05-22 03:20:39
阅读次数:
288
当你调用这个对象的方法MyObject.method(arg1,
arg2)的时候,这会由Python自动转为MyClass.method(MyObject, arg1,
arg2)——这就是self的原理了。2.__init____init__ 方法名别写错了!__init__ 用来定义变量的se...
分类:
编程语言 时间:
2014-05-22 03:12:56
阅读次数:
266
转自:http://bbs.csdn.net/topics/390451617下载python进行安装,默认自带此工具开始->程序->Python
2.*/3.*-> IDLE (Python GUI)如此就打开了Python Shell->File->New
window(Ctrl+N)就出现了p...
分类:
编程语言 时间:
2014-05-22 03:05:37
阅读次数:
291
上周一直在研究zeromq,并且也实现了了zeromq在python和ruby之间的通信,但是如果是一个大型的企业级应用,对消息中间件的要求比较高,比如消息的持久化机制以及系统崩溃恢复等等需求,这个时候zeromq就显得有点鸡肋了,特别是消息持久化是他的的硬伤,那么怎么找一个比较适合的中间件呢?
....
分类:
编程语言 时间:
2014-05-22 02:07:32
阅读次数:
343
(转自:http://www.cnblogs.com/sbxwylt/archive/2008/12/31/1366199.html)这里下载:http://www.newtonsoft.com/products/json/安装:
1.解压下载文件,得到Newtonsoft.Json.dll 2.在...
分类:
Web程序 时间:
2014-05-22 02:05:33
阅读次数:
395