摘要: 1.sort()是列表的方法,修改原列表使得它按照大小排序,没有返回值,返回None In [90]: x = [4, 6, 2, 1, 7, 9] In [91]: x.sort() In [92]: x Out[92]: [1, 2, 4, 6, 7, 9] In [98]: aa = x.so 阅读全文
posted @ 2022-08-25 14:56 python学习者0 阅读(404) 评论(0) 推荐(0) 编辑