View youdao.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
命令行版本的有道词典,调用有道翻译的 API 实现 | |
用法一: | |
% python youdao.py search | |
原文: search | |
发音: sɜːtʃ |