let str = "level";for c in str.chars() { println!("{c}");}//带索引迭代for (i, c) in str.chars().enumerate() { println!("str[{i}] = {c};");}