查网页版英文字典的简单实用工具

每次查单词的时候都要敲一遍,而且要有时要查多个字典来相互印证,耗时又繁琐,所以简单写了这么个工具。查单词的时候先复制单词到剪切板,然后再按快捷键就可以了。同时滤掉广告,加载网页更顺畅。具体说明见下面。

先上图:

使用方法:
运行程序
Ctrl + C 复制要查的单词
Ctrl + D 从剪贴板取出单词,查前3个字典
Ctrl + E 从剪贴板取出单词,查当前显示的字典

启动第二个程序实例
Alt + Z 会同时查前3个字典
Alt + X 查当前显示的字典

启动第三个程序实例
Alt + A 会同时查前3个字典
Alt + S 查当前显示的字典

下载地址:查英文字典的工具,可以查牛津,剑桥和韦氏等9部字典-C#文档类资源-CSDN下载

直接下载,无需注册:A simple tool to look up words in dictionaries · Everyday English

免安装工具: Release\Translate.exe

依赖微软的两个组件:
.Net Framework 4.7.2, 这个一般Windows10里已安装
https://dotnet.microsoft.com/en-us/download/dotnet-framework

VC的一些文件,打开:
https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170

选择:
Visual Studio 2015, 2017, 2019, and 2022
X64    https://aka.ms/vs/17/release/vc_redist.x64.exe

 

好的,以下是一个简单的英语字典询与管理程序的实现: ```python # 定义字典,key为单词,value为单词的解释 dictionary = { 'apple': 'a round fruit with red or green skin and a central core', 'banana': 'a long curved fruit which grows in clusters and has soft pulpy flesh and yellow skin when ripe', 'cat': 'a small domesticated carnivorous mammal with soft fur, a short snout, and retractable claws', 'dog': 'a domesticated carnivorous mammal with a barking voice, a furry body, and a long tail' } # 询函数,输入单词,返回该单词的解释 def query_word(word): if word in dictionary: return dictionary[word] else: return None # 添加函数,输入单词和解释,将其添加到字典中 def add_word(word, definition): dictionary[word] = definition print('添加成功!') # 删除函数,输入单词,将其从字典中删除 def delete_word(word): if word in dictionary: del dictionary[word] print('删除成功!') else: print('该单词不存在!') # 主函数,提供询、添加、删除等功能 def main(): while True: print('欢迎使用英语字典询与管理程序!') print('1. 询单词') print('2. 添加单词') print('3. 删除单词') print('4. 退出程序') choice = input('请选择操作:') if choice == '1': word = input('请输入要询的单词:') definition = query_word(word) if definition: print(word + '的解释为:' + definition) else: print('没有询到' + word + '的解释!') elif choice == '2': word = input('请输入要添加的单词:') definition = input('请输入' + word + '的解释:') add_word(word, definition) elif choice == '3': word = input('请输入要删除的单词:') delete_word(word) elif choice == '4': print('再见!') break else: print('无效的选择,请重新输入!') # 运行主函数 main() ``` 输出结果为: ``` 欢迎使用英语字典询与管理程序! 1. 询单词 2. 添加单词 3. 删除单词 4. 退出程序 请选择操作:1 请输入要询的单词:apple apple的解释为:a round fruit with red or green skin and a central core 欢迎使用英语字典询与管理程序! 1. 询单词 2. 添加单词 3. 删除单词 4. 退出程序 请选择操作:2 请输入要添加的单词:orange 请输入orange的解释:a round fruit with a tough bright reddish-yellow rind 添加成功! 欢迎使用英语字典询与管理程序! 1. 询单词 2. 添加单词 3. 删除单词 4. 退出程序 请选择操作:3 请输入要删除的单词:cat 删除成功! 欢迎使用英语字典询与管理程序! 1. 询单词 2. 添加单词 3. 删除单词 4. 退出程序 请选择操作:4 再见! ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值