From 1fe9b282995c89ca2438dfe4d7641a7073da4031 Mon Sep 17 00:00:00 2001 From: Luthics Date: Fri, 21 Oct 2022 22:26:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- homework/2/17.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homework/2/17.py b/homework/2/17.py index b3d6b14..43837df 100644 --- a/homework/2/17.py +++ b/homework/2/17.py @@ -2,6 +2,7 @@ n= int (input()) x= [] for i in range(n): x.append(input().split()[0]) + # 0表示只保留第一个元素,舍弃后两个 s= input() for i in range(n): if(s==x[i]):