
python study
qingyujingyu427
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
list sort
Usage: list.sort([cmp[,key[,reverse]]]) how to use cmp parameter def my_cmp(x,y): if x<y: return -1 elif x==y: return 0 else: return 1 arr = [2,5,3,1,4] arr.sort(my_cmp)...2008-07-04 15:03:04 · 103 阅读 · 0 评论 -
Solving topcoder srm407 with python
CorporationSalary You can find the problem description here. Because the problem is little simple, so here change "If an employee has any subordinates, then his salary is equal to the sum of the salar...2008-07-04 17:01:57 · 183 阅读 · 0 评论