摘要:
1.Python 基础教程版:(有点没想清楚) 1 def search(sequence, number, lower=0, upper=None): 2 if upper is None: upper = len(sequence) -1 3 print 'sequence = ... 阅读全文
摘要:
1:>>> range(10, 0, -1)[10, 9, 8, 7, 6, 5, 4, 3, 2, 1]>>> range(10)[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]>>> range(0, 10)[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]>>> rang... 阅读全文