Comprehensive Rust(繁体中文)Cargo,方便您更輕鬆做習題。在最後一天,我們會做規模較大的習題,讓您瞭解如何使用 依附元件,而這需要使用 Cargo。 本課程的程式碼區塊皆完全為互動式: fn main() { println!("Edit me!"); } You can use Ctrl + Enter to execute the code when focus is in the text box. 大部分程式碼範例都可供 手冊中的指示操作。您應會 獲得正常運作的 rustc 和 cargo。截至本文撰寫時間,最新的 Rust 穩定版具有下列版本編號: % rustc --version rustc 1.69.0 (84c898d65 2023-04-16) % cargo --version cargo 1.69.0 (6e9a83356 2023-04-12) 由於 Rust 保有回溯相容性,您也可以使用任何後續版本。 4. 將 src/main.rs 中的樣板程式碼替換為自己的程式碼。以上一頁的範例為例,替換後的 src/main.rs 會類似如下: fn main() { println!("Edit me!"); } 5. 使用 cargo run 建構並執行更新版二進位檔: $ cargo run Compiling exercise v0.1.0 (/home/mgeisler/tmp/exercise)0 码力 | 358 页 | 1.41 MB | 10 月前3
Julia 1.10.9| julia> 1 + 2 3 julia> ans 3 To exit the interactive session, type CTRL-D (press the Control/^ key together with the d key), or type exit(). When run in interactive mode, julia displays a banner Nd/No), as well as other Unicode code points: diacritics and other modifying marks (categories Mn/Mc/Me/Sk), some punctuation connectors (category Pc), primes, and a few other characters. Operators like operator ⋅ (U+22C5). The minus sign − (U+2212) is treated as equivalent to the hyphen-minus sign - (U+002D). 3.2 Assignment expressions and assignment versus mutation An assignment variable = value "binds"0 码力 | 1692 页 | 6.34 MB | 3 月前3
julia 1.10.10| julia> 1 + 2 3 julia> ans 3 To exit the interactive session, type CTRL-D (press the Control/^ key together with the d key), or type exit(). When run in interactive mode, julia displays a banner Nd/No), as well as other Unicode code points: diacritics and other modifying marks (categories Mn/Mc/Me/Sk), some punctuation connectors (category Pc), primes, and a few other characters. Operators like operator ⋅ (U+22C5). The minus sign − (U+2212) is treated as equivalent to the hyphen-minus sign - (U+002D). 3.2 Assignment expressions and assignment versus mutation An assignment variable = value "binds"0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.11.4| julia> 1 + 2 3 julia> ans 3 To exit the interactive session, type CTRL-D (press the Control/^ key together with the d key), or type exit(). When run in interactive mode, julia displays a banner Nd/No), as well as other Unicode code points: diacritics and other modifying marks (categories Mn/Mc/Me/Sk), some punctuation connectors (category Pc), primes, and a few other characters. Operators like operator ⋅ (U+22C5). The minus sign − (U+2212) is treated as equivalent to the hyphen-minus sign - (U+002D). 4.2 Assignment expressions and assignment versus mutation An assignment variable = value "binds"0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 Documentation| julia> 1 + 2 3 julia> ans 3 To exit the interactive session, type CTRL-D (press the Control/^ key together with the d key), or type exit(). When run in interactive mode, julia displays a banner Nd/No), as well as other Unicode code points: diacritics and other modifying marks (categories Mn/Mc/Me/Sk), some punctuation connectors (category Pc), primes, and a few other characters. Operators like operator ⋅ (U+22C5). The minus sign − (U+2212) is treated as equivalent to the hyphen-minus sign - (U+002D). 4.2 Assignment expressions and assignment versus mutation An assignment variable = value "binds"0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release Notes| julia> 1 + 2 3 julia> ans 3 To exit the interactive session, type CTRL-D (press the Control/^ key together with the d key), or type exit(). When run in interactive mode, julia displays a banner Nd/No), as well as other Unicode code points: diacritics and other modifying marks (categories Mn/Mc/Me/Sk), some punctuation connectors (category Pc), primes, and a few other characters. Operators like operator ⋅ (U+22C5). The minus sign − (U+2212) is treated as equivalent to the hyphen-minus sign - (U+002D). 4.2 Assignment expressions and assignment versus mutation An assignment variable = value "binds"0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.12.0 Beta4| julia> 1 + 2 3 julia> ans 3 To exit the interactive session, type CTRL-D (press the Control/^ key together with the d key), or type exit(). When run in interactive mode, julia displays a banner Nd/No), as well as other Unicode code points: diacritics and other modifying marks (categories Mn/Mc/Me/Sk), some punctuation connectors (category Pc), primes, and a few other characters. Operators like operator ⋅ (U+22C5). The minus sign − (U+2212) is treated as equivalent to the hyphen-minus sign - (U+002D). 4.2 Assignment expressions and assignment versus mutation An assignment variable = value "binds"0 码力 | 2057 页 | 7.44 MB | 3 月前3
julia 1.13.0 DEV|\__'_|_|_|\__'_| | Commit 925d504ade4 (1 day old master) |__/ | julia> 1 + 2 3 julia> ans 3 To exit the interactive session, type CTRL-D (press the Control/^ key together with the d key), or type exit() Nd/No), as well as other Unicode code points: diacritics and other modifying marks (categories Mn/Mc/Me/Sk), some punctuation connectors (category Pc), primes, and a few other characters. Operators like operator ⋅ (U+22C5). The minus sign − (U+2212) is treated as equivalent to the hyphen-minus sign - (U+002D). 4.2 Assignment expressions and assignment versus mutation An assignment variable = value "binds"0 码力 | 2058 页 | 7.45 MB | 3 月前3
Julia 1.12.0 RC1| julia> 1 + 2 3 julia> ans 3 To exit the interactive session, type CTRL-D (press the Control/^ key together with the d key), or type exit(). When run in interactive mode, julia displays a banner Nd/No), as well as other Unicode code points: diacritics and other modifying marks (categories Mn/Mc/Me/Sk), some punctuation connectors (category Pc), primes, and a few other characters. Operators like operator ⋅ (U+22C5). The minus sign − (U+2212) is treated as equivalent to the hyphen-minus sign - (U+002D). 4.2 Assignment expressions and assignment versus mutation An assignment variable = value "binds"0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta3| julia> 1 + 2 3 julia> ans 3 To exit the interactive session, type CTRL-D (press the Control/^ key together with the d key), or type exit(). When run in interactive mode, julia displays a banner Nd/No), as well as other Unicode code points: diacritics and other modifying marks (categories Mn/Mc/Me/Sk), some punctuation connectors (category Pc), primes, and a few other characters. Operators like operator ⋅ (U+22C5). The minus sign − (U+2212) is treated as equivalent to the hyphen-minus sign - (U+002D). 4.2 Assignment expressions and assignment versus mutation An assignment variable = value "binds"0 码力 | 2057 页 | 7.44 MB | 3 月前3
共 38 条
- 1
- 2
- 3
- 4













