顺序查找 python版
顺序查找 d [5,9,10,7,8,20,6,0] key 10 for i in range(len(d)): if d[i] key: print(找到,下标为%d % i) break else: print(未找到)