let f = File::open("hello.txt").unwrap_or_else(|error| { println!("打开失败: {:?}", error); // 创建默认文件 File::create("hello.txt").unwrap() });