basic/compound-type/tuple #739
Replies: 18 comments 32 replies
-
没人说话对吧,我来吱一声 |
Beta Was this translation helpful? Give feedback.
-
()也是元组吧 |
Beta Was this translation helpful? Give feedback.
-
这里和go一样 2333 多个返回值都是使用 括号包裹起来,单个返回值就可以直接写类型了 |
Beta Was this translation helpful? Give feedback.
-
很好奇为什么元组不可以迭代,像python声明一个元组,直接map可以迭代访问。rust的元组既知道长度,也知道元素类型,还可以用索引访问,可是不能迭代。。。 |
Beta Was this translation helpful? Give feedback.
-
设计非常巧妙 |
Beta Was this translation helpful? Give feedback.
-
什么场景下会用到元组这种数据结构呢? |
Beta Was this translation helpful? Give feedback.
-
小白求问,元组为什么不通过 |
Beta Was this translation helpful? Give feedback.
-
rust基本类型里面单元类型和复合类型的元组有区别吗? |
Beta Was this translation helpful? Give feedback.
-
元组 —— 适合组装基础类型变量为符合类型 |
Beta Was this translation helpful? Give feedback.
-
Python的pack和unpack |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
mark read |
Beta Was this translation helpful? Give feedback.
-
感觉有点简单啊 |
Beta Was this translation helpful? Give feedback.
-
打卡 |
Beta Was this translation helpful? Give feedback.
-
我发的评论呢????被吞了? |
Beta Was this translation helpful? Give feedback.
-
这一节相比上一个轻松许多 |
Beta Was this translation helpful? Give feedback.
-
这一节easy |
Beta Was this translation helpful? Give feedback.
-
fn main() {
let too_long_tuple = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13);
println!("too long tuple: {:?}", too_long_tuple);
} 为什么过长的元组不能打印 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
basic/compound-type/tuple
https://course.rs/basic/compound-type/tuple.html
Beta Was this translation helpful? Give feedback.
All reactions