本项目介绍如何运用Google Translate API创建一个高效的Python程序以进行文本翻译,适合编程爱好者和技术开发者学习实践。
```python
# -*- coding: utf-8 -*-
import httplib
from urllib import urlencode
import re
def out(text):
p = re.compile(r,‘)
m = p.split(text)
print m[0][4:].decode(UTF-8).encode(GBK)
if __name__ == __main__:
while True:
word = raw_input(Input the word you want to search:)
```