python 排序函数L.sort()和sorted()
摘要:python提供了两种排序方法: 1、列表的成员函数:L.sort(),在原位重新排列列表,未创建新的列表; 2、内建函数:sorted(L),产生一个新的列表,不改变原列表; sorted >>> help(sorted)Help on built-in function sorted in mo
阅读全文
posted @ 2017-08-16 15:52
posted @ 2017-08-16 15:52
posted @ 2017-08-15 11:06
posted @ 2017-08-07 21:00
posted @ 2017-08-07 20:38
posted @ 2017-08-06 14:20