python實現二維數組的查找(5-7)

#從左下角找的 def leftbottom(target, array): line_num=len(array)#表示行 col_num=len(array[0])#表示列 #先從左下角進行查找 col=0 line=line_num-1 while col<col_num and line>=0: if target<array[line][col]:
相關文章
相關標籤/搜索