2018年11月19日

python内置函数 sorted详解

摘要: sorted作为python的内置全局方法,用于可迭代序列的排序。 sorted函数接受3个参数: >>> list =[1,2,3,6,4,5]>>> list[1, 2, 3, 6, 4, 5]>>> sorted(list)[1, 2, 3, 4, 5, 6]>>> sorted(list,r 阅读全文

posted @ 2018-11-19 21:55 天山来客 阅读(1370) 评论(0) 推荐(0)

导航