Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python的sort函数 | 宇宙人的小怪屋 #32

Open
umm233 opened this issue Feb 5, 2019 · 0 comments
Open

Python的sort函数 | 宇宙人的小怪屋 #32

umm233 opened this issue Feb 5, 2019 · 0 comments

Comments

@umm233
Copy link
Owner

umm233 commented Feb 5, 2019

https://umm233.github.io/p/8394e334/

sort函数小记 list.sort(cmp=None, key=None, reverse=False)l cmp – 可选参数, 如果指定了该参数会使用该参数的方法进行排序。l key – 主要是用来进行比较的元素,只有一个参数,具体的函数的参数就是取自于可迭代对象中,指定可迭代对象中的一个元素来进行排序。l* reverse – 排序规则,reverse = True 降序,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant