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.
|
|
2 years ago | |
|---|---|---|
| image | 3 years ago | |
| libs | 2 years ago | |
| utils | 2 years ago | |
| .gitignore | 3 years ago | |
| README.md | 3 years ago | |
| favicon.ico | 3 years ago | |
| main.py | 2 years ago | |
| requirements.txt | 2 years ago | |
| run.sh | 2 years ago | |
| sentence_gpt.py | 2 years ago | |
README.md
LearnEnglishWithSentences
一个用例句学单词的python应用,使用tkinter构建gui 欢迎使用本项目喵~😊
<白天模式>

<夜间模式>
创建.env文件
用编辑器打开编辑,填入你的接口和apikey
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就行了
隔离使用
首先要安装包
pip install -r requirements
下载压缩包,然后解压,打开文件夹,右键打开终端,运行
python main.py