Linux下安装有道词典
来源:互联网 发布:java aop自定义 编辑:程序博客网 时间:2024/05/16 00:27
安装环境:Ubuntu32位操作系统
参考网址:http://www.bc-sj.com/html/linux/rumen/ruanjianshiyong/2011/0201/2222.html
1,下载有道安装包pyton-dict.1.0.1.zip,网址:http://sourceforge.net/projects/yodao-free/files/python-dict/ ,下载后解压得到的文件夹中有一个dict.py的文件,将其复制到home文件夹下或者进入其所在文件夹下,然后在终端执行命令python dict.py + 你要搜索的词,就可以看到解释了,如下:
alice@alice-Aspire-4738G:~$ python dict.py chinese
chinese
Translations from 有道词典
n. 中文,汉语;中国人
adj. 中国的,中国人的;中国话的
Translations from WordNet
any of the Sino-Tibetan languages spoken in China; regarded as dialects of a single language (even though they are mutually unintelligible) because they share an ideographic writing system
a native or inhabitant of Communist China or of Nationalist China
of or pertaining to China or its peoples or cultures
of or relating to or characteristic of the island republic on Taiwan or its residents or their language
Translations from yodao:
Chinese: 汉语
Chinese Taipei: 中华台北
2,自定义命令alias,如果你觉得麻烦,可以自定义命令,比如 ll 命令就是“ls -al”的缩写,它是通过alias ll = "ls -al"来实现的。这里如果想要在终端下输入 youdao + 单词 就能获得解释那么你可以在命令行下执行alias youdao="python dict.py" ,然后source .bashrc使其生效,接下来执行 youdao + 单词,你就能看到单词的释义啦!
- Linux下安装有道词典
- linux下安装有道词典
- Linux mint 下安装有道词典
- linux 词典安装,有道
- Ubuntu下安装-有道词典
- Ubuntu 下安装有道词典
- LInux下的有道词典
- linux(所有版本)下安装有道词典
- Ubuntu下有道词典的安装
- Ubuntu 14.04下安装有道词典
- Ubuntu 14.04下安装有道词典
- linux下如何使用有道词典
- Linux下有道词典客户端 openyoudao
- linux下方便的使用有道词典
- archlinux 安装有道词典
- ubuntu安装有道词典
- Ubuntu-安装-有道词典
- Fedora23安装有道词典
- WPF新手实践1:MVVM Light Toolkit(一、下载与安装)
- poj 2533
- makefile中的$@,$<,$^的意思
- Fiddler 教程
- 红皮书第一个实例:系统登录对话框
- Linux下安装有道词典
- WPF新手实践2:MVVM Light Toolkit(二、创建MvvmLight项目)
- IOS的一些东东~
- KMP算法详解——适合初学KMP算法的朋友
- WPF新手实践3:MVVM Light Toolkit(三、ViewModel和View)
- 基于HELPS3C2416 的MDK v4.1 平台的裸板程序
- MFC二次分割窗口
- JDBC访问数据库的方式——实例三
- 二叉排序树的实现和操作