You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LearnEnglishWithSentences/README.md

48 lines
900 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# LearnEnglishWithSentences
> 一个用例句学单词的python应用使用tkinter构建gui
> 欢迎使用本项目喵~😊
<div>
<白天模式>
<img src="image/README/1692853087082.png">
<夜间模式>
<img src="image/README/1692858802047.png">
</div>
## 创建.env文件
用编辑器打开编辑填入你的接口和apikey
```env
youdao_appKey = ""
youdao_appSecret = ""
openai_baseurl = "https://oa.api2d.net/v1/chat/completions"
openai_apiKey = ""
```
> 上面用的是api2d的接口应该是和openai官方的是一样的
> 查词用的是有道api,`http://fanyi.youdao.com/openapi/ `来这儿来取密钥注册好像送100体验金
## 直接使用
点击里面的run.cmd就行了
## 隔离使用
首先要安装包
```batch
pip install -r requirements
```
下载压缩包,然后解压,打开文件夹,右键打开终端,运行
```batch
python main.py
```