[Python][Arabic]阳春翻译工具

参考使用源码为以下:
https://github.com/amrelarabi/English-Arbic-Translator
程序一开始载入字典档并初始化
https://ithelp.ithome.com.tw/upload/images/20201104/20119608zahyhtcSfK.jpg
字典档以AVLTree方式储存
https://ithelp.ithome.com.tw/upload/images/20201104/20119608bINhgyBniq.jpg

翻译
https://ithelp.ithome.com.tw/upload/images/20201104/20119608HK2cl1CSTC.jpg

重新整理过的
https://github.com/KaliChen/Translator


    from Translator.Translator_aviImple import Translator_avlImple
    from Translator.Translator_dicImple import Translator_dicImple

    def Translation_avl(self, event = None):
        T = Translator_avlImple()

        while True:
            word = input("Enter a word: ")
            if word == "-1":
                break
            wordTran = T.TranslateSentense(word)
            print(wordTran)

    def Translation_dic(self, event = None):
        T = Translator_dicImple()
        while True:
            word = input("Enter a word: ")
            if word == "-1":
                break
            wordTran = T.TranslateSentense(word)
            print(wordTran)  

https://ithelp.ithome.com.tw/upload/images/20201105/20119608plCVRE9ZOW.jpg


<<:  角色的访问控制(RBAC)

>>:  JS 型别 DAY52

(Day-16) this 介绍上 - this 的指向

前言 不论是学习或是开发时,我们容易被 this 的指向搞的头昏眼花,接下来会花两个篇幅介绍 thi...

[Day9] Vite 出小蜜蜂~撞击行为 Collision Behavior!

Day9 Collision Behavior 当 Laser 跟 Squid 相互撞击时, 我们想...

[从0到1] C#小乳牛 练成基础程序逻辑 正确打开方式 - 观看SOP

🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄 Day 01 - 认识C++++ 乳牛与程序...

[Day15]C# 鸡础观念- 多笔资料的好朋友~List

我们曾经认识过阵列(array), 今天来介绍他的兄弟List吧 List< T > T...

Day04:Set Chat Page(设定聊天页) I

全文同步於个人 Docusaurus Blog 在处理完输入使用者名称後,下一步,自然就是进入 Ch...