Rust 程序设计语言 简体中文版 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 | 10 天前3人工智能安全治理框架 1.0
(a)(b) 强化人工智能供 应链安全保障 人工智能安全风 险威胁信息共享 和应急处置机制 算力安全风险 4.1.3 (c) 供应链安全风险 4.1.3 (d) 安全风险与技术应对措施、综合治理措施映射表 应用安全 风险 网络域 风险 信息内容安全风险 4.2.1 (a) 实施人工智能应 用分类分级管理 建立人工智能服 务可追溯管理制 度 加大人工智能安 全人才培养力度 建立健全人工智 能安全宣传教育、0 码力 | 20 页 | 3.79 MB | 1 月前3Tornado 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 customized with the static_url_prefix, static_handler_class, and static_handler_args settings. To map an additional path to this handler for a static data directory you would add a line to your application Likewise, your request handler class should implement open() method rather than get() or post(). If you map the handler above to /websocket in your application, you can invoke it in JavaScript with: var ws0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.5 Documentation
%}. Expressions are surrounded by {{ and }}, e.g. {{ items[0] }}. Control statements more or less map exactly to Python statements. We support if, for, while, and try, all of which are terminated with customized with the static_url_prefix, static_handler_class, and static_handler_args settings. To map an additional path to this handler for a static data directory you would add a line to your application Likewise, your request handler class should implement open() method rather than get() or post(). If you map the handler above to /websocket in your application, you can invoke it in JavaScript with: var ws0 码力 | 437 页 | 405.14 KB | 2 月前3
共 4 条
- 1