parent
1f3696b745
commit
345de4f86a
Binary file not shown.
@ -1,43 +0,0 @@
|
|||||||
import tkinter as tk
|
|
||||||
from tkinter import messagebox
|
|
||||||
import random
|
|
||||||
import pymysql
|
|
||||||
import test
|
|
||||||
|
|
||||||
|
|
||||||
class Window3(tk.Toplevel):
|
|
||||||
def __init__(self, master):
|
|
||||||
super().__init__(master)
|
|
||||||
self.title("易错单词复习")
|
|
||||||
self.geometry("400x300")
|
|
||||||
|
|
||||||
# 数据库连接设置
|
|
||||||
|
|
||||||
self.cursor = self.db.cursor()
|
|
||||||
self.text_widget = tk.Text(self, wrap=tk.WORD, width=40, height=10)
|
|
||||||
self.text_widget.pack(expand=True, fill=tk.BOTH, padx=10, pady=10)
|
|
||||||
|
|
||||||
# 获取易错单词
|
|
||||||
self.fetch_and_display_mistaken_words()
|
|
||||||
|
|
||||||
def fetch_and_display_mistaken_words(self):
|
|
||||||
self.cursor.execute("SELECT `word`, `meaning` FROM `words` WHERE `easily_mistaken` = 1")
|
|
||||||
mistaken_words = self.cursor.fetchall()
|
|
||||||
if mistaken_words:
|
|
||||||
self.display_words(mistaken_words)
|
|
||||||
else:
|
|
||||||
messagebox.showinfo("提示", "没有易错单词可供复习!")
|
|
||||||
self.destroy()
|
|
||||||
|
|
||||||
def display_words(self, words):
|
|
||||||
# 使用Text控件显示单词和意义
|
|
||||||
for idx, word_info in enumerate(words, start=1):
|
|
||||||
text_to_insert = f"{idx}. 单词: {word_info['word']}, 意义: {word_info['meaning']}\n"
|
|
||||||
self.text_widget.insert(tk.END, text_to_insert)
|
|
||||||
|
|
||||||
# 自动滚动到底部
|
|
||||||
self.text_widget.see(tk.END)
|
|
||||||
|
|
||||||
def on_closing(self):
|
|
||||||
self.db.close()
|
|
||||||
self.destroy()
|
|
Binary file not shown.
@ -0,0 +1,118 @@
|
|||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('abandon', 'v. 抛弃,放弃', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('abnormal', 'adj.不正常的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('absurd', 'adj.荒谬的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('abundant', 'adj.丰富的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('acknowledgement', 'n. 承认,感谢,致谢', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('acute', 'adj.敏锐的,锋利的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('admiration', 'n. 欣赏', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('advocate', 'n. 提倡者,拥护者', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('allowance', 'n. 津贴', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('ambition', 'n. 野心,雄心', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('analogy', 'n. 相似,模拟,类比', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('anticipation', 'n. 预期,期望', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('applaud', 'v. 赞扬,称赞', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('appreciation', 'n. 感谢,感激', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('appropriate', 'adj.合适的,恰当的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('array', 'n. 陈列,一系列', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('ascend', 'v. 上升,攀登', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('assurance', 'n. 保证', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('attribute', 'v. 归因于', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('average', 'adj.一般的,普通的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('barren', 'adj.贫瘠的,不毛的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('base', 'v. 建立在……的基础上', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('bewilder', 'v. 迷惑,弄糊涂', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('bound', 'adj.一定的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('breed', 'v. 培育,养育', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('chronic', 'adj.慢性的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('circulation', 'n. (书报等的)发行量', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('cling', 'v. 坚守,抱紧', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('coincide', 'v. 相同,相一致', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('collaborate', 'v. 合著,合作', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('commentary', 'adj.实况报道', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('commitment', 'n. 承诺,许诺', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('compact', 'adj.紧凑的,小巧的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('confront', 'v. 面对,面临', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('conserve', 'v. 保护,保存', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('decent', 'adj.体面的,像样的,还不错的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('deliberately', 'adv. 故意,有意地', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('delicate', 'adj.精细的,微妙的,精心处理的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('destructive', 'adj.毁灭的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('economic', 'adj.经济的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('elegant', 'adj.优雅的,优美的,精致的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('embarrassing', 'adj.令人尴尬的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('energetic', 'adj.精力充沛的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('estimate', 'n. 估计', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('exclusively', 'adv. 仅仅地', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('explicitly', 'adv. 明确地', '1', '1');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('extinct', 'adj.灭绝的,绝种的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('fatal', 'adj.致命的,毁灭性的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('forcibly', 'adv. 强行地,有力地', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('formerly', 'adv. 原先地,以前,从前', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('gloomy', 'adj.暗淡的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('greasy', 'adj.油腻的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('guarantee', 'n. 保修单', '1', '1');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('guilt', 'n. 内疚,罪行', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('harmony', 'n. 与……协调一致,和谐', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('hospitality', 'n. 友好款待,好客', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('humor', 'n. 情绪,心境', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('identical', 'adj.相同的,一样的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('illusion', 'n. 错觉,假象', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('imaginative', 'adj.富有想象力的,爱想象的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('increasingly', 'adv. 日益,越来越多地', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('inevitably', 'adv. 必然地,不可避免地', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('inferior', 'adj.地位较低的,较差的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('ingredient', 'n. 成分', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('inherent', 'adj.固有的,生来的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('insight', 'n. 理解,洞察力', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('inspection', 'n. 检查,视察', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('massive', 'adj.大规模的,大量的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('misfortune', 'n. 不幸,灾难', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('morality', 'n. 道德,美德', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('notion', 'n. 概念,观念,理解', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('notorious', 'adj.臭名昭著的,声名狼藉的', '1', '1');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('obedient', 'adj.服从的,顺从的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('obligation', '(法律上或道义上的)责任', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('occasion', 'n. 场合', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('opponent', 'n. 敌人,对手', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('ornament', 'n. 装饰,装饰品', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('outwardly', 'adv. 表面上,外表上地', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('participation', 'n. 参加,加入', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('persistent', 'adj.坚持不懈的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('personality', 'n. 人格,人性', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('pledge', 'n. 保证,誓言', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('position', 'n. 位置,职位,职务', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('potential', 'adj.可能的,潜在的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('predecessor', 'n. 前任,原有的事物', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('prestige', 'n. 威信,威望', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('presumably', 'adv. 大概,可能,据推测', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('priority', 'n. 优先(权)', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('profound', 'adj.深刻的,深远的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('prominent', 'adj.突出的,杰出的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('prompt', 'adj.即刻的,迅速的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('prospect', 'n. 前景,可能性', '1', '1');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('rate', 'n. 速度', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('ration', 'n. 比率', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('raw', 'adj.自然状态的,未加工的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('recession', 'n. (经济)衰退,不景气;撤退,退出', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('relevant', 'adj.与……有关的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('respectable', 'adj.可尊敬的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('rough', 'adj.粗略的,不精确的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('rude', 'adj.粗鲁的,不礼貌的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('sensitive', 'adj.敏感的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('simultaneously', 'adv. 同时发生地', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('somewhat', 'adv. 颇为,稍稍,有几分', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('subtle', 'adj.微妙的,精巧的,细微的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('temperament', 'n. 气质,性格', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('threshold', 'n. 开端,入口', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('trend', 'n. 倾向,趋势', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('triumphantly', '(欣喜)胜利地,成功地', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('unexpectedly', 'adv. 意外地', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('variation', 'n. 变化,变动', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('versatile', 'adj.多才多艺的', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('virtually', 'adv. 事实上,实际地', '1', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('vivid', 'adj.生动的,栩栩如生的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('void', 'adj.无效的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('vulnerable', 'adj. 易受伤的', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('warehouse', 'n. 货仓', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('way', 'n. 方式', '0', '0');
|
||||||
|
INSERT INTO `words` (`word`, `meaning`, `learned`, `easily_mistaken`) VALUES ('worth', 'adj. 值得', '1', '0');
|
Loading…
Reference in new issue