Loading

摘要: 今天写代码的时候有一个需求,我希望在某个代表路径的字符串不为空时,以这个路径来读取文件,得到一个File对象: if xxx is not empty str { let file = File::open(Path::new(fpath)) .expect(format!("cannot open 阅读全文
posted @ 2022-12-20 17:08 yudoge 阅读(1220) 评论(0) 推荐(0) 编辑