From 57cd14db9956d7241bedfedb17283a1b7ce4b0cc Mon Sep 17 00:00:00 2001 From: KaiyiWing Date: Tue, 9 Feb 2021 11:32:15 +0800 Subject: [PATCH] =?UTF-8?q?docs(README):=20=E5=A2=9E=E5=8A=A0=E5=AF=B9=20J?= =?UTF-8?q?SON=20=E6=A0=BC=E5=BC=8F=E7=9A=84=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 181 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 181 insertions(+) diff --git a/README.md b/README.md index 36d36e8..fb6b1f3 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,187 @@ def replaceFran(str): return str ``` +# 📕 JSON 格式说明 + +以 CET4_3.json 第一个单词 cancel 为例 + +```json +{ + // 单词序号 + "wordRank": 1, + // 单词 + "headWord": "cancel", + "content": { + "word": { + "wordHead": "cancel", + "wordId": "CET4_3_1", + "content": { + // 单词相关测试 + "exam": [ + { + // 问题 + "question": "As we can no longer wait for the delivery of our order, we have to _______ it.", + // 答案 + "answer": { + "explain": " cancel order: 取消订单。 句意: 订购的货物尚未送到, 我们不能再等了, 不得不取消订单。 postpone: 推迟, 使延期; refuse: 拒绝, 谢绝; delay: 耽搁, 延迟, 延期。", + "rightIndex": 4 + }, + // 测试类型 + "examType": 1, + // 选项 + "choices": [ + { + "choiceIndex": 1, + "choice": "postpone" + }, + { + "choiceIndex": 2, + "choice": "refuse" + }, + { + "choiceIndex": 3, + "choice": "delay" + }, + { + "choiceIndex": 4, + "choice": "cancel" + } + ] + } + ], + // 例句 + "sentence": { + "sentences": [ + { + // 英语 + "sContent": "Our flight was cancelled.", + // 中文翻译 + "sCn": "我们的航班取消了。" + }, + { + "sContent": "I’m afraid I’ll have to cancel our meeting tomorrow.", + "sCn": "恐怕我得取消我们明天的会议。" + }, + { + "sContent": "You’ll just have to ring John and cancel.", + "sCn": "你只能打电话给约翰取消了。" + } + ], + // 描述 + "desc": "例句" + }, + // 美音音标 + "usphone": "'kænsl", + // 近义词 + "syno": { + "synos": [ + { + // 词性 + "pos": "vt", + // 对应词义 + "tran": "[计]取消;删去", + // 近义词/词组 + "hwds": [ + { + "w": "recall" + }, + { + "w": "call it off" + } + ] + }, + { + "pos": "vi", + "tran": "[计]取消;相互抵销", + "hwds": [ + { + "w": "call it off" + }, + { + "w": "declare off" + } + ] + }, + { + "pos": "n", + "tran": "[计]取消,撤销", + "hwds": [ + { + "w": "withdrawal" + }, + { + "w": "revocation" + } + ] + } + ], + "desc": "同近" + }, + // 英音音标 + "ukphone": "'kænsl", + // 英音发音https请求参数 + "ukspeech": "cancel&type=1", + // 短语 + "phrase": { + "phrases": [ + { + // 英语 + "pContent": "cancel button", + // 翻译 + "pCn": "取消按钮" + }, + { + "pContent": "cancel out", + "pCn": "取消;抵销" + }, + { + "pContent": "cancel after verification", + "pCn": "核销" + } + ], + "desc": "短语" + }, + // 同根词 + "relWord": { + "rels": [ + { + // 词性 + "pos": "n", + "words": [ + { + // 英语 + "hwd": "cancellation", + // 翻译 + "tran": " 取消;删除" + } + ] + } + ], + "desc": "同根" + }, + // 美音发音https请求参数 + "usspeech": "cancel&type=2", + // 翻译 + "trans": [ + { + // 中释 + "tranCn": " 取消, 撤销; 删去", + "descOther": "英释", + // 词性 + "pos": "vt", + "descCn": "中释", + // 英英释义 + "tranOther": "to decide that something that was officially planned will not happen" + } + ] + } + } + }, + // 单词书 ID + "bookId": "CET4_3" +} +``` + ## ⚡ 声明 若本应用侵犯了您的权益,或造成不利影响,请联系 lyy@iwwee.com 并提供微信号码,在确认身份后我将立即下架本应用。