python bif(内置函数)
1 ord
如何获取ascii码,使用内置函数ord()
1 | ord("A") |
804. 唯一摩尔斯密码词
2 sorted
https://www.runoob.com/python3/python3-func-sorted.html
1 | sorted([-3,4,2],key=abs) |
3 iter 和 next函数
4 dir
https://www.runoob.com/python/python-func-dir.html
5 filter
只保留true,过滤false
filter(lambda x:x%2==0,[1,2,3,4,5]) [2,4]