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

菜鸟求助有关于 asyncio 这个库的用法

  •  
  •   graham2012 · Jul 18, 2018 · 1221 views
    This topic created in 2849 days ago, the information mentioned may be changed or developed.
    从来没接触过编程的菜鸟,一路靠百度学习,现在遇到了一些问题,有些摸不着头脑,希望有大佬能给指一指路,下面是问题:
    因为希望在处理返回数据的时候能够同时开始下一次请求,所以百度到了 asyncio 这个库,跟着教程写了一个很简单的例子,但是使用 run_until_complete 来注册协程到事件里去的时候,就会报“循环已经在运行”这个错,我也找不到原因,只能发帖求助
    我的操作系统是 win7 64 位,python3.6,是用 anaconda 装的,写代码用的自带的 jupyter,先谢过各位了
    graham2012
        1
    graham2012  
    OP
       Jul 19, 2018
    木有人知道嘛
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1465 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 16:52 · PVG 00:52 · LAX 09:52 · JFK 12:52
    ♥ Do have faith in what you're doing.