摘要: 官网链接 filter(function, iterable)¶ Construct an iterator from those elements of iterable for which function returns true. iterable may be either a seque 阅读全文
posted @ 2017-06-09 10:55 xtrdb.net 阅读(208) 评论(0) 推荐(0) 编辑
摘要: str:' ';" " class str(basestring): """ str(object='') string Return a nice string representation of the object. If the argument is a string, the retur 阅读全文
posted @ 2017-05-31 11:42 xtrdb.net 阅读(172) 评论(0) 推荐(0) 编辑
摘要: class int(object): """ int(x=0) int or long int(x, base=10) int or long Convert a number or string to an integer, or return 0 if no arguments are give 阅读全文
posted @ 2017-05-31 11:39 xtrdb.net 阅读(185) 评论(0) 推荐(0) 编辑
摘要: set集合,是一个无序且不重复的元素集合 A = set([1, 2, 3, 4, 5, 6,]) B = set([2, 3, 4, 5, 6, 7, 8]) type(A) type(B) class set(object): """ set() new empty set object set 阅读全文
posted @ 2017-05-31 11:30 xtrdb.net 阅读(127) 评论(0) 推荐(0) 编辑