小编use*_*227的帖子

内置函数"排序"如何在Python中工作?

x = [1, 4, 7, 65, 23, 57, 12]
>>> sorted(x)
[1, 4, 7, 12, 23, 57, 65]
Run Code Online (Sandbox Code Playgroud)

出于好奇,这个功能如何运作?Python用于排序迭代的算法是什么?

python sorting built-in

3
推荐指数
1
解决办法
4868
查看次数

标签 统计

built-in ×1

python ×1

sorting ×1