Rust 标准库中的std::fs::File 模块提供了静态方法open() 用于打开一个文件并返回文件句柄。 open() 函数的原型如下 pub fn open(path: P) -> Result.
確定! 回上一頁