From 90e5cb15e5c727ab89297e3c26cbbd34f2a313f8 Mon Sep 17 00:00:00 2001 From: lsy2246 Date: Sun, 7 Apr 2024 13:54:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E5=BD=95=E5=85=A5=E6=97=B6=E9=97=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/code/englishstudy.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/code/englishstudy.py b/python/code/englishstudy.py index 8af806c..580e740 100644 --- a/python/code/englishstudy.py +++ b/python/code/englishstudy.py @@ -53,9 +53,8 @@ def detection_work_day(): English = test[0] Chinese = test[1] works.append(English) - Data = time.strftime("%Y-%m-%d", time.localtime()) - cursor.execute('insert into Mistake(English, Chinese, Date)\n' - f"values ('{English}','{Chinese}','{Data}')") + cursor.execute('insert into Mistake(English, Chinese)\n' + f"values ('{English}','{Chinese}')") cursor.execute(f"update Work set frequency = frequency+1 where English='{English}'") conn.commit() i += 1