V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Clavier
V2EX  ›  Python

这只是一个解析Goole翻译的东西

  •  
  •   Clavier · Nov 9, 2012 · 3334 views
    This topic created in 4930 days ago, the information mentioned may be changed or developed.
    在Linux下面每次都要上网站去查单词意思什么的很不爽的啊。所以正好练习解析网站。
    运行的时候输入中文可以得到英文结果,英文可以得到中文结果(我只是判断了一下参数的第一个字符)。 顺便把例句也弄下来了,不喜欢就把那个query_ex函数去掉吧
    总感觉代码写的很不简洁。。Python写的不多, 谁可以帮我看一下那里的代码风格需要改一下,谢谢谢谢拉

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3030 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 09:33 · PVG 17:33 · LAX 02:33 · JFK 05:33
    ♥ Do have faith in what you're doing.