zoukankan      html  css  js  c++  java
  • dict-命令行下中英文翻译工具

    命令行下中英文翻译工具(Chinese and English translation tools in the command line)

    asciicast

    安装(Install)

    ubuntu 安装 pip

    sudo apt-get install python-pip python-dev build-essential 
    sudo pip install --upgrade pip 
    

    安装 dict

    sudo pip install dict-cli
    

    用法(Usage)

    英译中(English To Chinese)

    $ dict test
    ###################################
    #  test 测试
    #  (U: tɛst E: test)
    #
    #  n. 试验;检验
    #  vt. 试验;测试
    #  vi. 试验;测试
    #  n. (Test)人名;(英)特斯特
    #
    #  Test : 测试
    #          测验
    #          检验
    #  Test Drive : Test Drive
    #                Test Drive
    #                无限狂飙
    #  Test Engineer : 测试员
    #                   测试工程师
    #                   软件测试工程师
    ###################################
    
    $ dict I love you
    ###################################
    #  I love you 我爱你
    #
    #
    #  我爱你。
    #
    #  I love you : 我爱你
    #                ILOVEYOU蠕虫
    #                寻找伴郎
    #  I really love you : 真的爱你
    #                       其实很爱你
    #                       我是真的爱你
    #  I Do love you : 我是爱你的
    #                   真的爱你
    #                   爱你我该怎么办
    ###################################
    

    中译英(Chinese To English)

    $ dict 测试
    ###################################
    #  测试 test
    #  (Pinyin: cè shì)
    #
    #  [试验] test
    #  measurement
    #
    #  测试 : Test
    #          test
    #          TST test
    #  集成测试 : Integration testing
    #              Test d'intégration
    #              통합 시험
    #  ANOVA测试 : Gage R&R
    #             ANOVA gauge R&R
    ###################################
    
    $ dict 我爱你
    ###################################
    #  我爱你 I love you
    #  (Pinyin: wǒ ài nǐ)
    #
    #  I love you
    #
    #  我爱你 : I love you
    #            Ich liebe dich
    #            Wuh that I love you
    #  我也爱你 : I Love You Too
    #              And I Love You So
    #              Ik ook van jou
    #  我就爱你 : The Arrangement
    #              gou couh gyaez mwngz muengh
    #              I'll just be love you
    ###################################
    

    Reference:

  • 相关阅读:
    postgres导入和导出
    postgres日常操作
    NumPy Ndarray 对象
    NumPy 简介及安装
    Python两个内置函数locals 和globals
    python之multiprocessing多进程
    postgres外部表
    css中文本超出部分省略号代替
    js中的作用域链
    css中clip:rect矩形剪裁功能
  • 原文地址:https://www.cnblogs.com/wave-gbt/p/dict.html
Copyright © 2011-2022 走看看