mirror of https://github.com/sunface/rust-course
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sunface
3a1b27bb76
|
3 years ago | |
---|---|---|
.. | ||
README.md | 3 years ago | |
strings1.rs | 3 years ago | |
strings2.rs | 3 years ago |
README.md
字符串
Rust 有两种字符串类型,一种是字符串切片(&str
),另一种是拥有所有权的字符串(String
)。我们不打算向你说明何时使用其中哪一种,但我们将为你讲解如何区分和创建它们,并灵活使用。