🦀初见Rust:编程界的原神
2024-6-19
| 2024-6-28
0  |  阅读时长 0 分钟
type
status
date
slug
summary
tags
password
category
Property
Jun 28, 2024 03:28 AM
icon

学习资料

  • rustlings:在VsCode中练习,有很多练习题
  • 极客时间:Rust训练营
 

环境安装

windows用户参见:https://rustup.rs/
先下一个Visual Studio,再运行rustup-init.exe按命令行指示操作即可
 
 

Rust基础

1. Variables and Mutability

关于let

The value of x in the inner scope is: 12
The value of x is: 6
这里每用一次let,就相当于新命名了一个变量

变量类型

Length
Signed
Unsigned
8-bit
i8
u8
16-bit
i16
u16
32-bit
i32
u32
64-bit
i64
u64
128-bit
i128
u128
arch
isize
usize
 
  • Rust
  • 加锁文章 - 密码123456AI生成图片检测概述
    Loading...
    目录