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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . for long polling, WebSockets, and other applications that require a long-lived connection to each user. CONTENTS 1Tornado Documentation, Release 6.5.1 2 CONTENTSCHAPTER ONE QUICK LINKS • Current version: frameworks. It is not 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 is0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.5 Documentation
wikipedia.org/wiki/WebSocket], and other applications that require a long-lived connection to each user. Quick links Current version: 6.5.1 (download from PyPI [https://pypi.python.org/pypi/tornado], [https://wsgi.readthedocs.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 is also available in PDF and Epub formats [https://readthedocs.org/projects/tornado/downloads/]. User’s guide Introduction Asynchronous and non-Blocking I/O Coroutines Queue example - a concurrent web0 码力 | 437 页 | 405.14 KB | 2 月前3Rust 程序设计语言 简体中文版 1.85.0
5-1 展示了一个存储用户账号信息的结构体: 文件名:src/main.rs struct User { active: bool, username: String, email: String, sign_in_count: u64, } 示例 5-1:User 结构体定义 一旦定义了结构体后,为了使用它,通过为每个字段指定具体值来创建这个结构体的实例。创 let user1 = User { active: true, username: String::from("someusername123"), email: String::from("someone@example.com"), sign_in_count: 1, }; } 示例 5-2:创建 User 结构体的实例 为了从结构体中获取某个特定的值,可以使用点号。举个例子,想要用户的邮箱地址,可以用 user1.email。如果结构体的实例是可变的,我们可以使用点号并为对应的字段赋值。示例 5-3 展示了如何改变一个可变的 User 实例中 email 字段的值: 文件名:src/main.rs fn main() { let mut user1 = User { active: true,0 码力 | 562 页 | 3.23 MB | 9 天前3
共 3 条
- 1