推荐学习书目
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
u2gign
V2EX  ›  Python

函数顺序执行的问题,只能通过线程同步来解决吗

  •  
  •   u2gign · Oct 24, 2019 · 3100 views
    This topic created in 2467 days ago, the information mentioned may be changed or developed.
    例如顺序执行两个函数 A,B 需要等 A 执行完成后才会执行 B,是否只能通过线程同步来解决,有其他简便的方法吗
    4 replies    2019-10-24 19:23:38 +08:00
    macha
        1
    macha  
       Oct 24, 2019
    多个线程分别执行 A 和 B?
    ClericPy
        2
    ClericPy  
       Oct 24, 2019
    使用队列, 使用 Future, 使用 callback, 使用协程
    reus
        3
    reus  
       Oct 24, 2019
    没有
    0NF09LJPS51k57uH
        4
    0NF09LJPS51k57uH  
       Oct 24, 2019
    事件驱动了解一下,回调了解一下。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2885 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 12:46 · PVG 20:46 · LAX 05:46 · JFK 08:46
    ♥ Do have faith in what you're doing.