📜  rust range step - Rust 代码示例

📅  最后修改于: 2022-03-11 14:49:25.935000             🧑  作者: Mango

代码示例1
fn main() {
    for x in (1..10).step_by(2) {
        println!("{}", x);
    }
}