- 博客(3)
- 收藏
- 关注
原创 看看python解释器缓存了多少数字[python]
i = 0while True:if i+1 is not i+1:print ielse:
2014-06-04 13:54:14
401
转载 排列生成算法(python)
def permute(seq, index): seqc = seq[:] seqn = [seqc.pop()] divider = 2 while seqc: index, new_index = divmod(index,divider) seqn.insert(new_index, seqc.pop()) divider += 1 return
2014-06-03 17:29:55
633
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人