Tornado 6.5 Documentation
items[0] }}. 6.1. User’s guide 27Tornado Documentation, Release 6.5.1 Control statements more or less map exactly to Python statements. We support if, for, while, and try, all of which are terminated with authentication and authorization protocols for a number of the most pop- ular sites on the web, including Google/Gmail, Facebook, Twitter, and FriendFeed. The module includes methods to log users in via these sites publish a Twitter message on their behalf. Here is an example handler that uses Google for authentication, saving the Google credentials in a cookie for later access: class GoogleOAuth2LoginHandler(tornado0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.5 Documentation
com/tornadoweb/tornado] Mailing lists: discussion [https://groups.google.com/forum/#!forum/python-tornado] and announcements [https://groups.google.com/forum/#!forum/python-tornado-announce] Stack Overflow [ PageDiscussion and support You can discuss Tornado on the Tornado developer mailing list [https://groups.google.com/forum/#!forum/python-tornado], and report bugs on the GitHub issue tracker [https://github.c com/tornadoweb/tornado/wiki/Links]. New releases are announced on the announcements mailing list [https://groups.google.com/forum/#!forum/python- tornado-announce]. Tornado is available under the Apache License, Version0 码力 | 437 页 | 405.14 KB | 2 月前3Rust 程序设计语言 简体中文版 1.85.0
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 8.3. 使用 Hash Map 储存键值对 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 第七章介绍 Rust 的模块(module)系统,其中的私有性规则用来组织代码和公开的 API(应 用程序接口)。第八章讨论标准库提供的常见集合数据结构,例如 Vector(向量)、字符串和 Hash Map(散列表)。第九章探索 Rust 的错误处理的理念与技术。 第十章深入介绍泛型(generic)、Trait 和生命周期(lifetime),这些功能让你能够定义适用 于多种类型的代码。第十一章全面讲述了测试,因为就算 crate 作用域的习惯用法。 文件名:src/main.rs use std::collections::HashMap; fn main() { let mut map = HashMap::new(); map.insert(1, 2); } 示例 7-14: 将 HashMap 引入作用域的习惯用法 这种习惯用法背后没有什么硬性要求:它只是一种惯例,人们已经习惯了以这种方式阅读和编0 码力 | 562 页 | 3.23 MB | 9 天前3
共 3 条
- 1