摘要: reduce() 函数在 python 2 是内置函数, 从python 3 开始移到了 functools 模块。 官方文档是这样介绍的 reduce(...)reduce(function, sequence[, initial]) -> value Apply a function of tw 阅读全文
posted @ 2021-05-11 11:57 zechariah1 阅读(92) 评论(0) 推荐(0) 编辑
摘要: python sorted函数的使用详解 原文链接:https://www.cnblogs.com/whaben/p/6495702.html ​ Python list内置sort()方法用来排序,也可以用python内置的全局sorted()方法来对可迭代的序列排序生成新的序列。 1)排序基础 阅读全文
posted @ 2021-05-11 11:11 zechariah1 阅读(3448) 评论(0) 推荐(0) 编辑