左下标left,右下标right,mid=left+(right-left)/2;if(nums[mid]==target)则继续向左边找到最小下标,if(nums[mid]<target)left=mid+1;if(nums[mid]>target)right=mid-1;