Rust 程序设计语言 简体中文版 1.85.0. . 12 1.2. Hello, World! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 1.3. Hello, Cargo! . . . 中,我们学习 Rust 的某个方面。在项 目章节中,我们应用目前所学的知识一同构建小型程序。第二、十二和二十一章是项目章节; 其余都是概念章节。 第一章介绍如何安装 Rust,如何编写一个 “Hello, world!” 程序,以及如何使用 Rust 的包管理 器和构建工具 Cargo。第二章是一个编写 Rust 语言的实战介绍,我们会构建一个猜数字游戏。 我们会站在较高的层次介绍一些概念,而后 入门指南 让我们开始 Rust 之旅!有很多内容需要学习,但每次旅程总有起点。在本章中,我们会讨论: • 在 Linux、macOS 和 Windows 上安装 Rust • 编写一个打印 Hello, world! 的程序 • 使用 Rust 的包管理器和构建系统 cargo 11/562Rust 程序设计语言 简体中文版 安装 第一步是安装 Rust。我们会通过 rustup 下载 Rust,这是一个管理0 码力 | 562 页 | 3.23 MB | 26 天前3
Julia 1.11.4julia> x = 1 + 1 2 # You can assign values of other types, like strings of text julia> x = "Hello World!" "Hello World!" Julia provides an extremely flexible system for naming variables. Variable names 1.0 julia> y = -3 -3 julia> Z = "My string" "My string" julia> customary_phrase = "Hello world!" "Hello world!" julia> UniversalDeclarationOfHumanRightsStart = "" "" 10CHAPTER 4. VARIABLES 11 11 Unicode names (in UTF-8 encoding) are allowed: julia> δ = 0.00001 1.0e-5 julia> = "Hello" "Hello" In the Julia REPL and several other Julia editing environments, you can type many Unicode math0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 Documentationjulia> x = 1 + 1 2 # You can assign values of other types, like strings of text julia> x = "Hello World!" "Hello World!" Julia provides an extremely flexible system for naming variables. Variable names 1.0 julia> y = -3 -3 julia> Z = "My string" "My string" julia> customary_phrase = "Hello world!" "Hello world!" julia> UniversalDeclarationOfHumanRightsStart = "" "" 10CHAPTER 4. VARIABLES 11 11 Unicode names (in UTF-8 encoding) are allowed: julia> δ = 0.00001 1.0e-5 julia> = "Hello" "Hello" In the Julia REPL and several other Julia editing environments, you can type many Unicode math0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release Notesjulia> x = 1 + 1 2 # You can assign values of other types, like strings of text julia> x = "Hello World!" "Hello World!" Julia provides an extremely flexible system for naming variables. Variable names 1.0 julia> y = -3 -3 julia> Z = "My string" "My string" julia> customary_phrase = "Hello world!" "Hello world!" julia> UniversalDeclarationOfHumanRightsStart = "" "" 10CHAPTER 4. VARIABLES 11 11 Unicode names (in UTF-8 encoding) are allowed: julia> δ = 0.00001 1.0e-5 julia> = "Hello" "Hello" In the Julia REPL and several other Julia editing environments, you can type many Unicode math0 码力 | 2007 页 | 6.73 MB | 3 月前3
julia 1.10.10julia> x = 1 + 1 2 # You can assign values of other types, like strings of text julia> x = "Hello World!" "Hello World!" Julia provides an extremely flexible system for naming variables. Variable names 1.0 julia> y = -3 -3 julia> Z = "My string" "My string" julia> customary_phrase = "Hello world!" "Hello world!" julia> UniversalDeclarationOfHumanRightsStart = "" "" 7CHAPTER 3. VARIABLES 8 Unicode names (in UTF-8 encoding) are allowed: julia> δ = 0.00001 1.0e-5 julia> = "Hello" "Hello" In the Julia REPL and several other Julia editing environments, you can type many Unicode math symbols0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.10.9julia> x = 1 + 1 2 # You can assign values of other types, like strings of text julia> x = "Hello World!" "Hello World!" Julia provides an extremely flexible system for naming variables. Variable names 1.0 julia> y = -3 -3 julia> Z = "My string" "My string" julia> customary_phrase = "Hello world!" "Hello world!" julia> UniversalDeclarationOfHumanRightsStart = "" "" 7CHAPTER 3. VARIABLES 8 Unicode names (in UTF-8 encoding) are allowed: julia> δ = 0.00001 1.0e-5 julia> = "Hello" "Hello" In the Julia REPL and several other Julia editing environments, you can type many Unicode math symbols0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.12.0 RC1julia> x = 1 + 1 2 # You can assign values of other types, like strings of text julia> x = "Hello World!" "Hello World!" Julia provides an extremely flexible system for naming variables. Variable names 1.0 julia> y = -3 -3 julia> Z = "My string" "My string" julia> customary_phrase = "Hello world!" "Hello world!" julia> UniversalDeclarationOfHumanRightsStart = "" "" 10CHAPTER 4. VARIABLES 11 11 Unicode names (in UTF-8 encoding) are allowed: julia> δ = 0.00001 1.0e-5 julia> = "Hello" "Hello" In the Julia REPL and several other Julia editing environments, you can type many Unicode math0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta4julia> x = 1 + 1 2 # You can assign values of other types, like strings of text julia> x = "Hello World!" "Hello World!" Julia provides an extremely flexible system for naming variables. Variable names 1.0 julia> y = -3 -3 julia> Z = "My string" "My string" julia> customary_phrase = "Hello world!" "Hello world!" julia> UniversalDeclarationOfHumanRightsStart = "" "" 10CHAPTER 4. VARIABLES 11 11 Unicode names (in UTF-8 encoding) are allowed: julia> δ = 0.00001 1.0e-5 julia> = "Hello" "Hello" In the Julia REPL and several other Julia editing environments, you can type many Unicode math0 码力 | 2057 页 | 7.44 MB | 3 月前3
julia 1.13.0 DEVjulia> x = 1 + 1 2 # You can assign values of other types, like strings of text julia> x = "Hello World!" "Hello World!" Julia provides an extremely flexible system for naming variables. Variable names 1.0 julia> y = -3 -3 julia> Z = "My string" "My string" julia> customary_phrase = "Hello world!" "Hello world!" julia> UniversalDeclarationOfHumanRightsStart = "" "" 10CHAPTER 4. VARIABLES 11 11 Unicode names (in UTF-8 encoding) are allowed: julia> δ = 0.00001 1.0e-5 julia> = "Hello" "Hello" In the Julia REPL and several other Julia editing environments, you can type many Unicode math0 码力 | 2058 页 | 7.45 MB | 3 月前3
Julia 1.12.0 Beta3julia> x = 1 + 1 2 # You can assign values of other types, like strings of text julia> x = "Hello World!" "Hello World!" Julia provides an extremely flexible system for naming variables. Variable names 1.0 julia> y = -3 -3 julia> Z = "My string" "My string" julia> customary_phrase = "Hello world!" "Hello world!" julia> UniversalDeclarationOfHumanRightsStart = "" "" 10CHAPTER 4. VARIABLES 11 11 Unicode names (in UTF-8 encoding) are allowed: julia> δ = 0.00001 1.0e-5 julia> = "Hello" "Hello" In the Julia REPL and several other Julia editing environments, you can type many Unicode math0 码力 | 2057 页 | 7.44 MB | 3 月前3
共 13 条
- 1
- 2













