From 19a51162372272638c2d180dd7b9c90ade37a346 Mon Sep 17 00:00:00 2001 From: Damonfruit <425212841@qq.com> Date: Wed, 21 Sep 2022 11:45:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E5=B7=A6=E9=97=AD?= =?UTF-8?q?=E5=8F=88=E5=BC=80=E5=8C=BA=E9=97=B4=E7=9A=84python=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- problems/0704.二分查找.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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