作者KSJ (阿真)
看板Python
标题Re: Y! Dict 字典程式 with python
时间Thu Mar 26 14:39:51 2009
我把下载下来的档案ydict-0.6.tar 解压缩 得到一个"档案"
用notepad开 另存为.py档 并把if main那个改成"ydict"
然後我import ydict 打入television
以下的"直接贴上" 跟实际输出的结果有些不同 但我想表示的是
不是像这里
http://0rz.tw/UJNtK 美美的
请问我是不是在哪里的使用上有误
我是用windowsXP下的python2.4.1 shell(GUI)
直接贴上:
<PyDict> television
>1mtelevision
;1mKK:[`t?l?,v???n]
DJ:[`teli,vi??n]
;1mn. (名词 noun)
1.电视,电视广播[U]
m;1mTelevisionm advertising boosted their sales.
m电视广告促进了他们的销售。
2.电视机[C]
mShe set the ;1mtelevisionm to the Midnight News.
m她将电视机调到午夜新闻档。
3.电视业[U]
m;1mTelevisionm is an enormously competitive business.
m电视业是一个竞争性极强的行业。
※ 引述《pokkys (人很好那一个)》之铭言:
: 之前在网路上看到用骆驼文写的ydict,非常喜欢用。
: 但是有一些写bug,我看不懂骆驼文,所以不会修。
: 所以用python写了一个版本。
: 简单说就是一只command line的字典查询程式。
: 在这里推广兼测试一下^^"
: http://code.google.com/p/ydict/downloads/list
: Usage: ydict [options]
: Options:
: -h, --help show this help message and exit
: -s, --step one step mode.
: -p, --pron disable pronounce.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.63.199