cli客户端和urbandictionary.com的库
urbandict的Python项目详细描述
py-urbandict
py-urbandict是urbandictionary.com网站的一个客户端。
>github上的项目页面:https://github.com/novel/py-urbandict
>只需运行:
>使用方法
使用方法
从命令行,只需使用这样的“urbancli”工具:
$urbandicli xterm
1。xterm
神圣的生物,万能的,各种各样的大师。
示例:
*我希望我是xterm
$
python的用法:
$python3.2
python 3.2(r32:884452011年2月27日,09:51:00)
[gcc 4.2.1 20070719[freebsd]]on freebsd8
键入“help”,“copyright”,“credits”或“license”了解更多信息。
>;>import urbandict
>;>urbandict.define('xterm')
[{word':'xterm','example':'i wish i was xterm','def':'godly creative,omnipower,guru in everything ways imaginable.'}]
>;
每个列表项都是一个dict,具有以下键:
*word--单词本身
*def--术语定义
*example--用法示例(可以是空的)
py-urbandict是urbandictionary.com网站的一个客户端。
>github上的项目页面:https://github.com/novel/py-urbandict
>只需运行:
>使用方法
使用方法
从命令行,只需使用这样的“urbancli”工具:
$urbandicli xterm
1。xterm
神圣的生物,万能的,各种各样的大师。
示例:
*我希望我是xterm
$
python的用法:
$python3.2
python 3.2(r32:884452011年2月27日,09:51:00)
[gcc 4.2.1 20070719[freebsd]]on freebsd8
键入“help”,“copyright”,“credits”或“license”了解更多信息。
>;>import urbandict
>;>urbandict.define('xterm')
[{word':'xterm','example':'i wish i was xterm','def':'godly creative,omnipower,guru in everything ways imaginable.'}]
>;
每个列表项都是一个dict,具有以下键:
*word--单词本身
*def--术语定义
*example--用法示例(可以是空的)