Goodspeed

导航

10 2011 档案

python小技巧汇总
摘要:# -*- coding: UTF-8 -*-#!/usr/bin/env pythondef pairwise(iterable): """ 交叉形成字典 """ itnext = iter(iterable).next while True: yield itnext(),itnext()def distinct(seq): """ 对序列进行去重 """ return dict.fromkeys(L).keys() if __name__ == '__main_ 阅读全文

posted @ 2011-10-31 17:37 Goodspeed 阅读(384) 评论(0) 推荐(0) 编辑

使用Lambda实现递归
摘要:本文介绍如何用lambda实现一个递归。包括整个思考的过程。供大家参考。 阅读全文

posted @ 2011-10-24 10:35 Goodspeed 阅读(3176) 评论(0) 推荐(0) 编辑