Tornado 5.1 Documentation
Release 5.1.1 4 Chapter 1. Quick links CHAPTER 2 Hello, world Here is a simple “Hello, world” example web app for Tornado: import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): __name__ == "__main__": app = make_app() app.listen(8888) tornado.ioloop.IOLoop.current().start() This example does not use any of Tornado’s asynchronous features; for that see this simple chat room. 5 Tornado every function blocks, at least a little bit, while it is running and using the CPU (for an extreme example that demonstrates why CPU blocking must be taken as seriously as other kinds of blocking, consider0 码力 | 243 页 | 895.80 KB | 1 年前3
Tornado 4.5 Documentation
[https://github.com/tornadoweb/tornado/wiki/Links] Hello, world Here is a simple “Hello, world” example web app for Tornado: import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): "__main__": app = make_app() app.listen(8888) tornado.ioloop.IOLoop.current().start() This example does not use any of Tornado’s asynchronous features; for that see this simple chat room [https://github org/projects/tornado/downloads/]. User’s guide Introduction Asynchronous and non-Blocking I/O Coroutines Queue example - a concurrent web spider Structure of a Tornado web application Templates and UI Authentication0 码力 | 333 页 | 322.34 KB | 1 年前3
Tornado 5.1 Documentation
[https://github.com/tornadoweb/tornado/wiki/Links] Hello, world Here is a simple “Hello, world” example web app for Tornado: import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): "__main__": app = make_app() app.listen(8888) tornado.ioloop.IOLoop.current().start() This example does not use any of Tornado’s asynchronous features; for that see this simple chat room [https://github org/projects/tornado/downloads/]. User’s guide Introduction Asynchronous and non-Blocking I/O Coroutines Queue example - a concurrent web spider Structure of a Tornado web application Templates and UI Authentication0 码力 | 359 页 | 347.32 KB | 1 年前3
Tornado 6.1 Documentation
Release 6.1 4 Chapter 1. Quick links CHAPTER 2 Hello, world Here is a simple “Hello, world” example web app for Tornado: import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): __name__ == "__main__": app = make_app() app.listen(8888) tornado.ioloop.IOLoop.current().start() This example does not use any of Tornado’s asynchronous features; for that see this simple chat room. 5 Tornado every function blocks, at least a little bit, while it is running and using the CPU (for an extreme example that demonstrates why CPU blocking must be taken as seriously as other kinds of blocking, consider0 码力 | 245 页 | 904.24 KB | 1 年前3
Tornado 4.5 Documentation
Release 4.5.3 4 Chapter 1. Quick links CHAPTER 2 Hello, world Here is a simple “Hello, world” example web app for Tornado: import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): __name__ == "__main__": app = make_app() app.listen(8888) tornado.ioloop.IOLoop.current().start() This example does not use any of Tornado’s asynchronous features; for that see this simple chat room. 5 Tornado every function blocks, at least a little bit, while it is running and using the CPU (for an extreme example that demonstrates why CPU blocking must be taken as seriously as other kinds of blocking, consider0 码力 | 222 页 | 833.04 KB | 1 年前3
Tornado 6.5 DocumentationRelease 6.5.1 4 Chapter 1. Quick linksCHAPTER TWO HELLO, WORLD Here is a simple “Hello, world” example web app for Tornado: import asyncio import tornado class MainHandler(tornado.web.RequestHandler): listen(8888) await asyncio.Event().wait() if __name__ == "__main__": asyncio.run(main()) This example does not use any of Tornado’s asynchronous features; for that see this simple chat room. 5Tornado every function blocks, at least a little bit, while it is running and using the CPU (for an extreme example that demonstrates why CPU blocking must be taken as seriously as other kinds of blocking, consider0 码力 | 272 页 | 1.12 MB | 3 月前3
Tornado 6.0 Documentation
Release 6.0.4 4 Chapter 1. Quick links CHAPTER TWO HELLO, WORLD Here is a simple “Hello, world” example web app for Tornado: import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): __name__ == "__main__": app = make_app() app.listen(8888) tornado.ioloop.IOLoop.current().start() This example does not use any of Tornado’s asynchronous features; for that see this simple chat room. 5 Tornado every function blocks, at least a little bit, while it is running and using the CPU (for an extreme example that demonstrates why CPU blocking must be taken as seriously as other kinds of blocking, consider0 码力 | 245 页 | 885.76 KB | 1 年前3
Tornado 6.4 Documentation
Release 6.4 4 Chapter 1. Quick links CHAPTER TWO HELLO, WORLD Here is a simple “Hello, world” example web app for Tornado: import asyncio import tornado class MainHandler(tornado.web.RequestHandler): listen(8888) await asyncio.Event().wait() if __name__ == "__main__": asyncio.run(main()) This example does not use any of Tornado’s asynchronous features; for that see this simple chat room. 5 Tornado every function blocks, at least a little bit, while it is running and using the CPU (for an extreme example that demonstrates why CPU blocking must be taken as seriously as other kinds of blocking, consider0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.4 Documentation
Release 6.4 4 Chapter 1. Quick links CHAPTER TWO HELLO, WORLD Here is a simple “Hello, world” example web app for Tornado: import asyncio import tornado class MainHandler(tornado.web.RequestHandler): listen(8888) await asyncio.Event().wait() if __name__ == "__main__": asyncio.run(main()) This example does not use any of Tornado’s asynchronous features; for that see this simple chat room. 5 Tornado every function blocks, at least a little bit, while it is running and using the CPU (for an extreme example that demonstrates why CPU blocking must be taken as seriously as other kinds of blocking, consider0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.4 Documentation
Release 6.4 4 Chapter 1. Quick links CHAPTER TWO HELLO, WORLD Here is a simple “Hello, world” example web app for Tornado: import asyncio import tornado class MainHandler(tornado.web.RequestHandler): listen(8888) await asyncio.Event().wait() if __name__ == "__main__": asyncio.run(main()) This example does not use any of Tornado’s asynchronous features; for that see this simple chat room. 5 Tornado every function blocks, at least a little bit, while it is running and using the CPU (for an extreme example that demonstrates why CPU blocking must be taken as seriously as other kinds of blocking, consider0 码力 | 268 页 | 1.09 MB | 1 年前3
共 20 条
- 1
- 2













