python的学习之路

python有很多有意思的代码写法,同时还很简短,以至于当我刚开始接触这个编程语言的时候,就爱不释手。 一行代码实现快速排序 qs = lambda xs : ( (len(xs) <= 1 and [xs]) or [ qs( [x for x in xs[1:] if x < xs[0]] ) + [xs[0]] + qs( [x for x in xs[1:] if x >= xs[0]]
相关文章
相关标签/搜索