mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 04:29:41 +00:00
add en/string.md
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
# Rust By Practice
|
||||
- English: [https://exercise.rs](https://exercise.rs)
|
||||
- 简体中文: [https://zh.exercise.rs](https://zh.exercise.rs)
|
||||
- English: [https://practice.rs](https://practice.rs)
|
||||
- 简体中文: [https://zh.practice.rs](https://zh.practice.rs)
|
||||
|
||||
欢迎大家来到 `exercise.rs`,在来到这里之前不知道你有没有碰到过以下问题:
|
||||
欢迎大家来到 `practice.rs`,在来到这里之前不知道你有没有碰到过以下问题:
|
||||
|
||||
- 学完知识,想要针对性的练习,但是只能找到一些不痛不痒的习题
|
||||
- 一些 Rust 工具、标准库等相关的习题更是一个都找不到
|
||||
@ -21,7 +21,7 @@
|
||||
## 学习 Rust 语言
|
||||
我们强烈推荐在开始做练习之前,先看看 [<<Rust语言圣经>>]((https://course.rs)) 这本书,它覆盖了从入门到精通所需的全部知识,相信我,里面绝对有你所需要的 Rust 知识。
|
||||
|
||||
(悄咪咪的告诉咱中国用户, `exercise.rs` 章节目录和 <<Rust语言圣经>> 完全相同,大家猜猜为什么)
|
||||
(悄咪咪的告诉咱中国用户, `practice.rs` 章节目录和 <<Rust语言圣经>> 完全相同,大家猜猜为什么)
|
||||
|
||||
|
||||
|
||||
@ -32,10 +32,10 @@
|
||||
另一个问题就是 rustlings 需要先下载到本地,然后编译运行,无法在线使用。
|
||||
|
||||
## 对比 Rust By Example
|
||||
[Rust By Example](https://doc.rust-lang.org/stable/rust-by-example/) 是相当不错的在线练习题,相比之前,`exercise.rs` 拥有以下优势 :
|
||||
[Rust By Example](https://doc.rust-lang.org/stable/rust-by-example/) 是相当不错的在线练习题,相比之前,`practice.rs` 拥有以下优势 :
|
||||
|
||||
- 内容覆盖面更广,且练习题更多、针对性更强,充分满足大家做题的快乐
|
||||
- 难度从简单到困难都有,且更贴合实际
|
||||
- 跟随 Rust 版本实时更新,
|
||||
- `course.rs` 和 `exercise.rs` 看域名就知道,它非常有信心才敢使用这两个针对性如此之强的域名,而信心来源于**高质量**
|
||||
|
||||
- `course.rs` 和 `practice.rs` 看域名就知道,它非常有信心才敢使用这两个针对性如此之强的域名,而信心来源于**高质量**
|
||||
- 实践应用
|
@ -1 +1 @@
|
||||
zh.exercise.rs
|
||||
zh.practice.rs
|
@ -1,6 +1,6 @@
|
||||
[book]
|
||||
title = "Rust Exercise"
|
||||
description = "A set of exercises and examples to pratice various aspects of Rust, also for the rust course (book) at https://course.rs"
|
||||
title = "Rust By Practice( Rust 练习实践 )"
|
||||
description = "Practice Rust with example, exercise and hand-to-hand projects. Written with ❤️ by https://course.rs team"
|
||||
authors = ["sunface, https://im.dev"]
|
||||
language = "en"
|
||||
|
||||
@ -13,8 +13,8 @@ enable = true
|
||||
level = 1
|
||||
|
||||
[output.html]
|
||||
git-repository-url = "https://github.com/sunface/rust-exercise"
|
||||
edit-url-template = "https://github.com/sunface/rust-exercise/edit/master/zh-CN/{path}"
|
||||
git-repository-url = "https://github.com/sunface/rust-by-practice"
|
||||
edit-url-template = "https://github.com/sunface/rust-by-practice/edit/master/zh-CN/{path}"
|
||||
|
||||
[rust]
|
||||
edition = "2021"
|
@ -15,7 +15,7 @@ git config user.email "cto@188.com"
|
||||
git add .
|
||||
git commit -m 'deploy'
|
||||
git branch -M gh-pages
|
||||
git remote add origin https://github.com/sunface/zh.exercise.rs
|
||||
git remote add origin https://github.com/sunface/zh.practice.rs
|
||||
|
||||
## push to github pages
|
||||
git push -u -f origin gh-pages
|
@ -1,6 +1,6 @@
|
||||
# Summary
|
||||
|
||||
- [关于 exercise.rs](why-exercise.md)
|
||||
- [关于 pracitce.rs](why-exercise.md)
|
||||
- [变量绑定与解构](variables.md)
|
||||
- [基本类型](basic-types/intro.md)
|
||||
- [数值类型](basic-types/numbers.md)
|
||||
@ -11,11 +11,12 @@
|
||||
- [所有权](ownership/ownership.md)
|
||||
- [引用和借用](ownership/borrowing.md)
|
||||
- [复合类型 todo](compound-types/intro.md)
|
||||
- [字符串与切片](compound-types/string-slice.md)
|
||||
- [字符串](compound-types/string.md)
|
||||
- [数组](compound-types/array.md)
|
||||
- [切片](compound-types/slice.md)
|
||||
- [元组](compound-types/tuple.md)
|
||||
- [结构体](compound-types/struct.md)
|
||||
- [枚举](compound-types/enum.md)
|
||||
- [数组](compound-types/array.md)
|
||||
- [流程控制 todo](flow-control.md)
|
||||
- [模式匹配 todo](pattern-match/intro.md)
|
||||
- [match 和 if let](pattern-match/match-iflet.md)
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Rust By Practice
|
||||
> 英文版 [传送门](https://exercise.rs)
|
||||
> 英文版 [传送门](https://practice.rs)
|
||||
|
||||
欢迎大家来到 `exercise.rs`,在来到这里之前不知道你有没有碰到过以下问题:
|
||||
欢迎大家来到 `practice.rs`,在来到这里之前不知道你有没有碰到过以下问题:
|
||||
|
||||
- 学完知识,想要针对性的练习,但是只能找到一些不痛不痒的习题
|
||||
- 一些 Rust 工具、标准库等相关的习题更是一个都找不到
|
||||
@ -11,8 +11,8 @@
|
||||
|
||||
## 在线阅读
|
||||
本书同时提供了中文和英文版本:
|
||||
- English: [https://exercise.rs](https://exercise.rs)
|
||||
- 简体中文: [https://zh.exercise.rs](https://zh.exercise.rs)
|
||||
- English: [https://practice.rs](https://exercise.rs)
|
||||
- 简体中文: [https://zh.practice.rs](https://zh.exercise.rs)
|
||||
|
||||
## 关于练习题的说明
|
||||
- 一切都在线化: 阅读、编辑和测试代码,当然还包括错误提示
|
||||
@ -25,7 +25,7 @@
|
||||
## 学习 Rust 语言
|
||||
我们强烈推荐在开始做练习之前,先看看 [<<Rust语言圣经>>]((https://course.rs)) 这本书,它覆盖了从入门到精通所需的全部知识,相信我,里面绝对有你所需要的 Rust 知识。
|
||||
|
||||
(悄咪咪的告诉咱中国用户, `exercise.rs` 章节目录和 <<Rust语言圣经>> 完全相同,大家猜猜为什么)
|
||||
(悄咪咪的告诉咱中国用户, `practice.rs` 章节目录和 <<Rust语言圣经>> 完全相同,大家猜猜为什么)
|
||||
|
||||
|
||||
|
||||
@ -36,12 +36,13 @@
|
||||
另一个问题就是 rustlings 需要先下载到本地,然后编译运行,无法在线使用。
|
||||
|
||||
## 对比 Rust By Example
|
||||
[Rust By Example](https://doc.rust-lang.org/stable/rust-by-example/) 是相当不错的在线练习题,相比之前,`exercise.rs` 拥有以下优势 :
|
||||
[Rust By Example](https://doc.rust-lang.org/stable/rust-by-example/) 是相当不错的在线练习题,相比之前,`practice.rs` 拥有以下优势 :
|
||||
|
||||
- 内容覆盖面更广,且练习题更多、针对性更强,充分满足大家做题的快乐
|
||||
- 难度从简单到困难都有,且更贴合实际
|
||||
- 跟随 Rust 版本实时更新,
|
||||
- `course.rs` 和 `exercise.rs` 看域名就知道,它非常有信心才敢使用这两个针对性如此之强的域名,而信心来源于**高质量**
|
||||
- `course.rs` 和 `practice.rs` 看域名就知道,它非常有信心才敢使用这两个针对性如此之强的域名,而信心来源于**高质量**
|
||||
- 应用实践
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user