题目:
Roman numerals come from the ancient Roman numbering system. They are based on specific letters of the alphabet which are combined to signify the sum (or, in some cases, the difference) of th...
分类:
其他好文 时间:
2014-06-20 12:27:09
阅读次数:
394
First-class Everything-- Guido van
RossumFirst-class object:
第一类对象。意指可在执行期创建并作为参数传递给其他函数或存入一个变量的对象。简而言之,第一类对象在使用时没有任何限制。第一类对象典型特征是可以动态创建、销毁,作为参数传递,可以作...
分类:
编程语言 时间:
2014-06-20 08:48:46
阅读次数:
287
cocos2d-x
3.x版本变动比较大,从改用cmake管理整个项目,到使用python集成一体化的项目工具。这些都是我喜欢的,我可以很容易的在我的ubuntu上面搭建环境,而且根本就不用考虑IDE的事情,sublime-text
or emacs足矣。唯一需要自己动手的就是制作一个比较好的调试工...
分类:
其他好文 时间:
2014-06-12 00:57:11
阅读次数:
709
1.这种方式的问题是,只列出当前import进上下文的模块.进入python命令行.输入以下代码:>>>import
sys>>>sys.modules2.在python命令行下输入:>>>help()help>modules
分类:
编程语言 时间:
2014-06-11 23:18:22
阅读次数:
287
1.
Python的数字类型Python的数字类型分为两类:整型(int)以及浮点型(float)。对于Python来说,整型可以取无限大。Python的整型可以取任意精度例如,可以输入2**1000次方,仍然会返回正确结果。Python的浮点类型按照IEE754标准,对于64位的计算机而言,表示成...
分类:
其他好文 时间:
2014-06-11 22:04:15
阅读次数:
321
python海明距离 - 5IVI4I_I_60Y的日志 - 网易博客python海明距离
2009-10-01 09:50:41|分类: Python |标签: |举报 |字号大中小订阅def hammingDist(s1, s2): assert
len(s1) == len(s2) retur...
分类:
编程语言 时间:
2014-06-11 22:02:15
阅读次数:
316
原题地址:https://oj.leetcode.com/problems/merge-k-sorted-lists/题意:Mergeksorted
linked lists and return it as one sorted list. Analyze and describe its com...
分类:
编程语言 时间:
2014-06-11 21:57:07
阅读次数:
399
python数据挖掘领域工具包 - wentingtu -
博客园python数据挖掘领域工具包原文:http://qxde01.blog.163.com/blog/static/67335744201368101922991/Python在科学计算领域,有两个重要的扩展模块:Numpy和Scipy...
分类:
编程语言 时间:
2014-06-11 13:27:30
阅读次数:
481
python实现的链表,包括插入、查找、删除操作
#!/usr/bin/python
class linknode():
def __init__(self,k,n=None):
self.key=k;
self.next=n;
def createlist(): #创建链表
n=raw_input("enter the num of nodes");
n=int(...
分类:
编程语言 时间:
2014-06-07 12:23:46
阅读次数:
204
range用法
使用python的人都知道range()函数很方便,今天再用到他的时候发现了很多以前看到过但是忘记的细节。
这里记录一下:
>>>
range(1,5)
#代表从1到5(不包含5)
[1,
2,
3,
4]
>>>
range(1,5,2)
#代表从1到5,间隔2(不包含5)
[1,
3]
>...
分类:
编程语言 时间:
2014-06-07 12:09:21
阅读次数:
276