..y 等价于 0..yx.. 等价于位置 x 到数据结束.. 等价于位置 0 到结束let s1 = String::from("hello");let s2 = &s1[..];
..y 等价于 0..y
x.. 等价于位置 x 到数据结束
.. 等价于位置 0 到结束
let s1 = String::from("hello");
let s2 = &s1[..];
若有收获,就点个赞吧
0 人点赞
让时间为你证明