算法
Sobremesa1
爱生活,爱code。
展开
-
python_选择排序
ps: python2.x print "hello python!" python3.x print("hello python!")原创 2019-04-24 14:44:00 · 180 阅读 · 0 评论 -
python_二分查找
def binary_search(list, item); low = 0; high = len(list) - 1; while low <= high: mid = (low + high) / 2; guess = list[mid]; if guess == item: retur...原创 2019-04-24 14:40:23 · 386 阅读 · 1 评论