所用字典源文件在https://cc-cedict.org/editor/editor_export_cedict.php?c=zip
from tkinter import *
root =Tk()
sky=StringVar() #输入汉语
et=Entry(root,textvariable=sky,width=20)
t = Text(root,width=80) # 显示字典词条
t.grid(row=0,column=0,columnspan=2)
#-------------------
sf=open("ced.txt","r",encoding="utf-8") # 打开源词典,我这里修改了cedict 的名字
sflist=sf