- 博客(2)
- 收藏
- 关注
原创 排序算法的学习
最好的情况下 时间复杂度是n 最会的情况下 时间复杂度是n^2 def Bubble(list): for i in range(len(list))[::-1]: for j in range(i): if list[j]>list[j+1]: list[j],list[j+1] = list[j+1],li
2016-05-21 17:49:25 362
原创 python challenge心得
0.pow(2,38) 或者2**381.def f(str): l=[] for x in str: if 'a'<=x<='z' or 'A'<=x<='Z': x=chr((ord(x)+2-ord('a'))%26+ord('a')) l.append(x) return ''.join(l)s="g fmnc
2016-05-14 18:13:00 419
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人