diff --git a/problems/0704.二分查找.md b/problems/0704.二分查找.md index 53f5331a..51f48267 100644 --- a/problems/0704.二分查找.md +++ b/problems/0704.二分查找.md @@ -220,7 +220,8 @@ class Solution: (版本二)左闭右开区间 -```class Solution: +```python +class Solution: def search(self, nums: List[int], target: int) -> int: if nums is None or len(nums)==0: return -1