From f2efebb1ba862d4bbcd8807c100ea07fd3d82499 Mon Sep 17 00:00:00 2001 From: b1f6c1c4 Date: Mon, 31 Aug 2020 23:07:32 -0400 Subject: [PATCH] fix miniature space problems --- README.md | 4 ++-- tools/addword.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9d7f4c0..f1cae67 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ### 中国程序员容易发音错误的单词(点击🔊收听正确读音) | 单词 | 正确发音(英音)| 正确发音(美音)| 错误发音 | -| --- | ----------- | ----------- | ---------- | +| --- | ----------- | ----------- | ---------- | | access | [🔊](http://dict.youdao.com/dictvoice?audio=access&type=1) ['ækses] | [🔊](http://dict.youdao.com/dictvoice?audio=access&type=2) [ˈækses] | ❌ [ək'ses] | | Adobe | [🔊](http://dict.youdao.com/dictvoice?audio=Adobe&type=1) [ə'dəʊbi]| [🔊](http://dict.youdao.com/dictvoice?audio=Adobe&type=2) [ə'dəʊbi] | ❌ [əˈdub] | | admin | [🔊](http://dict.youdao.com/dictvoice?audio=admin&type=1) ['ædmɪn] | [🔊](http://dict.youdao.com/dictvoice?audio=admin&type=2) [ˈædmɪn] | ❌ [ɜ:d'mɪn] | @@ -106,7 +106,7 @@ ### 说明 1. 本着简单的原则, 又为了避免程序猿们出现选择困难症, '正确音标'采用了最接近有道词典音频的英式 DJ 音标, 不代表其唯一性 1. 专业在线英语词典请参考[知乎链接:在线英语词典哪个比较好?](https://www.zhihu.com/question/19707759) - + ### 参考资料 1. https://www.zhihu.com/question/19739907 2. https://www.v2ex.com/t/131094 diff --git a/tools/addword.py b/tools/addword.py index 20e640b..0f547c5 100755 --- a/tools/addword.py +++ b/tools/addword.py @@ -18,7 +18,7 @@ def main(): prons = get_pronunciation_files(word) phones = get_phonetic_transcriptions(word) britsh_eng = '[🔊]('+prons[0]+')' + ' ' + phones[0] - american_eng = '[🔊]('+prons[1]+')' + phones[1] + american_eng = '[🔊]('+prons[1]+')' + ' ' + phones[1] line = '| ' + word + ' | ' + britsh_eng + ' | ' + american_eng + ' | ' + ' ' + '|' print(line)