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

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

  •  
  •   graham2012 · 2018-07-18 14:17:18 +08:00 · 898 次点击
    这是一个创建于 2099 天前的主题,其中的信息可能已经有所发展或是发生改变。
    从来没接触过编程的菜鸟,一路靠百度学习,现在遇到了一些问题,有些摸不着头脑,希望有大佬能给指一指路,下面是问题:
    因为希望在处理返回数据的时候能够同时开始下一次请求,所以百度到了 asyncio 这个库,跟着教程写了一个很简单的例子,但是使用 run_until_complete 来注册协程到事件里去的时候,就会报“循环已经在运行”这个错,我也找不到原因,只能发帖求助
    我的操作系统是 win7 64 位,python3.6,是用 anaconda 装的,写代码用的自带的 jupyter,先谢过各位了
    graham2012
        1
    graham2012  
    OP
       2018-07-19 08:45:52 +08:00
    木有人知道嘛
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   945 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 21:17 · PVG 05:17 · LAX 14:17 · JFK 17:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.