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

我可以把一个 queue_a 放进一个 queue_b 里,通过 queue_b 取出 queue_a 再用 queue_a 取内容吗?

  •  
  •   bleutail · 2021-09-15 17:00:28 +08:00 · 975 次点击
    这是一个创建于 925 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我想用 queue 从取出一个接口的返回值,但是这个封装的接口需要定期开关,我想每次启动接口的时候创建一个对应 queue,然后把新 queue_a 通过固定的 queue_b 传回主函数。

    sivacohan
        1
    sivacohan  
       2021-09-15 19:10:27 +08:00 via iPhone
    可以,但是不建议。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3102 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 12:55 · PVG 20:55 · LAX 05:55 · JFK 08:55
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.