Here's the equivalent Rust code: fn print_color(color: &str) { match color { "rose" => println!("roses are red,"), "violet" => println!
確定! 回上一頁