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
wooddance
V2EX  ›  Python

pyspider 如何得到 on_message 方法返回的结果

  •  
  •   wooddance · 2018-06-06 14:15:44 +08:00 · 1839 次点击
    这是一个创建于 2123 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在处理一个页面返回多个结果的任务中,使用 send_message 和 on_message 方法,但是 on_message 方法得到并且 return msg 之后如何进一步处理,我想要进一步在 on_result 中做一些处理,但是 on_result 获取不到 on_message 返回的结果。谢谢!
    2 条回复    2018-06-06 23:03:25 +08:00
    lovejoy
        1
    lovejoy  
       2018-06-06 16:02:23 +08:00
    binux
        2
    binux  
       2018-06-06 23:03:25 +08:00 via Android
    return 就行了啊
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2923 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 14:14 · PVG 22:14 · LAX 07:14 · JFK 10:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.