Tornado 6.5 Documentation
world 5 3 Threads and WSGI 7 4 asyncio Integration 9 5 Installation 11 6 Documentation 13 6.1 User’s guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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 Documentation, Release 6.5.1 6 based on WSGI, and it is typically run with only one thread per process. See the User’s guide for more on Tornado’s approach to asynchronous programming. While some support of WSGI is available in the0 码力 | 272 页 | 1.12 MB | 2 月前3Rust 程序设计语言 简体中文版 1.85.0
"hello_cargo" version = "0.1.0" edition = "2024" 18/562Rust 程序设计语言 简体中文版 [dependencies] 这个文件使用 TOML (Tom’s Obvious, Minimal Language) 格式,这是 Cargo 配置文件的格式。 第一行,[package],是一个片段 section 标题,表明下面的语句用来配置一个包。随着我们 hello_cargo v0.1.0 (file:///projects/hello_cargo) Finished dev [unoptimized + debuginfo] target(s) in 2.85 secs 这个命令会创建一个可执行文件 target/debug/hello_cargo (在 Windows 上是 targetdebughello_cargo.exe),而不 可以使用 cargo run 在一个命令中同时编译并运行生成的可执行文件: $ cargo run Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs Running `target/debug/hello_cargo` Hello, world! 比起必须先运行 cargo build 再用可执行文件的完整路径来执行程序,使用0 码力 | 562 页 | 3.23 MB | 9 天前3Tornado 6.5 Documentation
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 [https://github.com/tornadoweb/tornado/tr io/en/latest/], and it is typically run with only one thread per process. See the User’s guide for more on Tornado’s approach to asynchronous programming. While some support of WSGI is available in the wsgi module, it is not a focus of development and most applications should be written to use Tornado’s own interfaces (such as tornado.web) directly instead of using WSGI. In general, Tornado code is not0 码力 | 437 页 | 405.14 KB | 2 月前3
共 3 条
- 1