Python 高并发处理框架 Tornado
1.Tornado介绍
Tornado是使用Python编写的一个强大的可扩展的Web服务器,它在处理大网络流量是表现的强劲,创建和编写是轻量级,并用在大量的应用和工具中。
2.Tornado的安装
pip install tornado
pip install tornado
Collecting tornado
Downloading tornado-6.1.tar.gz (497 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 497.4/497.4 KB 46.2 kB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Building wheels for collected packages: tornado
Building wheel for tornado (setup.py) ... done
Created wheel for tornado: filename=tornado-6.1-cp310-cp310-macosx_10_9_universal2.whl size=416684 sha256=30e1aa2f7a9bdd7fea6d4aedb75e870621bb684d74883def94626d8124d37011
Stored in directory: /Users/apple/Library/Caches/pip/wheels/80/32/8d/21cf0fa6ee4e083f6530e5b83dfdfa9489a3890d320803f4c7
Successfully built tornado
Installing collected packages: tornado
Successfully installed tornado-6.1
3.异步和协成基础
同步和异步I/O
|