[Python] python版的快速排序算法代码 →→→→→进入此内容的聊天室

来自 , 2021-03-29, 写在 Python, 查看 141 次.
URL http://www.code666.cn/view/752356ce
  1. def qsort(L):
  2.     return ((qsort([x for x in L[1:] if x < L[0]]) + L[0:1] +
  3.              qsort([x for x in L[1:] if x >= L[0]])
  4.             ) if L
  5.             else [])
  6.  
  7.  
  8.  

回复 "python版的快速排序算法代码"

这儿你可以回复上面这条便签

captcha