看板 Python 關於我們 聯絡資訊
我把下載下來的檔案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