V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
mrfox
V2EX  ›  Python

墨墨背单词的查词典功能如何用 Python 实现

  •  
  •   mrfox · 2017-09-10 18:37:00 +08:00 · 3025 次点击
    这是一个创建于 2413 天前的主题,其中的信息可能已经有所发展或是发生改变。
    墨墨有点非常好,单词可以查很多知名在线词典的释义,排版都不错,除了词源那个不能适应手机。想问问原理,自己尝试搞一下
    5 条回复    2017-09-13 09:59:42 +08:00
    ycdjhh
        1
    ycdjhh  
       2017-09-10 18:40:40 +08:00 via Android   ❤️ 1
    好巧,我也在用
    ivechan
        2
    ivechan  
       2017-09-11 17:44:30 +08:00
    这个不是非常简单, 直接跳转到相关英语词典的网站啊, 大部分都有手机版适配的.
    跟墨墨没有关系, 也与 Python 无关.
    mrfox
        3
    mrfox  
    OP
       2017-09-13 01:28:23 +08:00
    @ivechan #2 就写一个查询语句么,遇到没有的词怎么处理,另外可不可以用 PY 读取无手机适配的网站再改成可以适配的输出呢
    mrfox
        4
    mrfox  
    OP
       2017-09-13 04:45:11 +08:00 via Android
    @ivechan 换个问法,如何用 python 写一个查询窗口,也调用词典网站的释义并且适配窗口大小和排版
    ivechan
        5
    ivechan  
       2017-09-13 09:59:42 +08:00
    @mrfox http://dictionary.cambridge.org/dictionary/english/grammar
    自己用 chrome 切换到手机模式看, 适配是网站自己做的。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1013 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 19:28 · PVG 03:28 · LAX 12:28 · JFK 15:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.