摘要:
最近研究了一下Python,觉得他这种问答式的界面特别适合学习编程,下面就举两个例子。1.快速排序的算法描述>>> def qsort(aL):... if aL==[]:return []... else:... smaller=[x for x in aL[1:] if x<aL[0]] #比aL[0]小的部分... bigger=[x for x in aL[1:] ... 阅读全文
posted @ 2007-03-06 20:07
李现民
阅读(1225)
评论(2)
推荐(0)

浙公网安备 33010602011771号