摘要: python3不能直接使用reduce()函数,因为reduce() 函数已经被从全局名字空间里移除了,它现在被放置在fucntools 模块里,所以要使用reduce函数得先饮用fucntools 例如: >>> from functools import reduce >>> reduce(la 阅读全文
posted @ 2019-05-13 16:57 夏诗 阅读(1366) 评论(0) 推荐(1) 编辑