摘要: http://www.cnblogs.com/evening/archive/2012/03/29/2423554.html 阅读全文
posted @ 2017-11-09 11:59 leeQQQ 阅读(114) 评论(0) 推荐(0) 编辑
摘要: http://www.runoob.com/python/python-func-map.html map() 函数语法: 参数 function -- 函数,有两个参数 iterable -- 一个或多个序列 >>>def square(x) : # 计算平方数 ... return x ** 2 阅读全文
posted @ 2017-11-09 11:56 leeQQQ 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 在python手册中: sorted(iterable[,cmp,[,key[,reverse=True]]]) 作用:Return a new sorted list from the items in iterable. 第一个参数是一个iterable,返回值是一个对iterable中元素进行 阅读全文
posted @ 2017-11-09 11:42 leeQQQ 阅读(6630) 评论(0) 推荐(0) 编辑