[leetcode]Word Ladder II @
Python原题地址:http://oj.leetcode.com/problems/word-ladder-ii/参考文献:http://blog.csdn.net/doc_sgl/article/details/13341405
ht...
分类:
编程语言 时间:
2014-04-29 21:42:30
阅读次数:
590
---恢复内容开始---说起lazy_object,首先想到的是django
orm中的query_set、fn.Stream这两个类。query_set只在需要数据库中的数据的时候才 产生db
hits。Stream对象只有在用到index时才会去一次次next。例子: f = Stream(.....
分类:
编程语言 时间:
2014-04-29 21:27:01
阅读次数:
676
逻辑运算符python不用&& ||
!表示与或非,用andornot,优先级是not > and > or。bool类型:True 和 False条件语句if expression1:
;elif expression2: ;else: ;字符串函数word = raw_inpu...
分类:
编程语言 时间:
2014-04-29 21:12:45
阅读次数:
492
public abstract
classAsyncTaskextendsObjectjava.lang.Object?android.os.AsyncTaskClass
OverviewAsyncTask enables proper and easy use of the UI thread. ...
分类:
移动开发 时间:
2014-04-29 21:05:32
阅读次数:
748
After having installed Ubuntu OS, you should
update config file for root account. The commands are listed as follow:vi
/etc/lightdm/lightdm.conf #open...
分类:
其他好文 时间:
2014-04-29 19:21:56
阅读次数:
555
一个最基本的C程序由五个部分组成: 头文件 (Preprocessor commands)
函数 (function) 变量 (variable) 语句块 (statement 和 expression) 注释 (comments)例如:
#include int mai...
分类:
编程语言 时间:
2014-04-29 19:17:50
阅读次数:
457
这个工具是从阿里云客服那知道的,当时遇到阿里云CDN的一个节点出现丢包问题,用这个工具诊断路由节点问题。1.
下载地址:http://rudix.org/packages/mtr.html;2. 下载后运行mtr-0.85-0.pkg进行安装;3. cd
/usr/local/sbin ,就会看m...
分类:
其他好文 时间:
2014-04-29 18:48:03
阅读次数:
729
问题描述: Python基础篇 参考资料:
(1)http://www.cnblogs.com/octobershiner/archive/2012/12/04/2801670.html
(2)http://www.cnblogs.com/itech/archive/2010/06/20/17603...
分类:
编程语言 时间:
2014-04-29 17:29:59
阅读次数:
610
2014-04-28
23:54题目:XML文件的冗余度很大,主要在于尖括号里的字段名。按照书上给定的方式进行压缩。解法:这题我居然忘做了,只写了一句话的注解。用python能够相对方便地实现,因为有直接的XML工具可以调用。书上的那种要求应该是符合前序遍历规则。代码:1
# 17.10 Parse...
分类:
其他好文 时间:
2014-04-29 15:22:37
阅读次数:
329
苹果:Instruments User GuideiPhone Memory
Debugging with NSZombie and Instruments苹果:Mac OS X Debugging Magic——高级瓶盖调试技巧必备
分类:
其他好文 时间:
2014-04-29 14:03:37
阅读次数:
451