def search(workAry, target ):
left=0
right =len(workAry)-1
find =-1
while left<=right:
middle=(left+right)//2
if workAry [middle]==target :
find=middle
break
else:
if target >workAry[middle]:
left =middle+1
else :
right =middle -1
return find
沒事,發個廢文
我也不知道我在幹嘛
一二三四五