pub fn write<S>(path: &str, filename: &str, data: &[S]) -> Result<(), Error>where S: Serialize,
写入数据到指定的文件路径