05 2023 档案

摘要:|from |to |函数| |: :|: :|: | |&str |String |String::from(s) 或 s.to_string() 或 s.to_owned()| |&str |&[u8] |s.as_bytes()| |&str |Vec |s.as_bytes().to_vec 阅读全文
posted @ 2023-05-30 17:37 成豪 阅读(802) 评论(0) 推荐(0)
摘要:```rust // #![windows_subsystem = "windows"] use std::process::{Command,Stdio}; use std::os::windows::process::CommandExt; fn main(){ let output = Com 阅读全文
posted @ 2023-05-29 17:06 成豪 阅读(736) 评论(0) 推荐(0)