当前位置: 首页 > news >正文

公司网站怎么做简介网站推广计划书范文500字

公司网站怎么做简介,网站推广计划书范文500字,大学生软件开发项目推荐,哪些网页游戏好玩Rust使用calamine读取已存在的test.xlsx文件全部数据,还读取指定单元格数据;Rust使用rust_xlsxwriter创建新的output.xlsx文件,并写入数据到指定单元格,然后再保存工作簿。 Cargo.toml main.rs /*rust读取excel文件*/ use cala…

Rust使用calamine读取已存在的test.xlsx文件全部数据,还读取指定单元格数据;Rust使用rust_xlsxwriter创建新的output.xlsx文件,并写入数据到指定单元格,然后再保存工作簿。

Cargo.toml在这里插入图片描述

main.rs

/*rust读取excel文件*/
use calamine::{open_workbook, DataType, Error, Reader, Xlsx};
//rust使用rust_xlsxwriter写入excel文件
use rust_xlsxwriter::{Workbook, XlsxError};fn main() {let _ = read_excel();let _ = write_excel();
}// rust使用calamine库读取Excel
fn read_excel() -> Result<(), Error> {let file_path = "test.xlsx";// opens a new workbooklet mut workbook: Xlsx<_> = open_workbook(file_path).expect("Cannot open file");let mut worksheet = workbook.worksheet_range("Sheet1").expect("Cannot find 'Sheet1'");for (row_index, row) in worksheet.rows().enumerate() {// 遍历每列并输出内容for (col_index, cell) in row.iter().enumerate() {// 获取所有单元格的值println!("Sheet1 - Row {}, Column {} : {}",row_index + 1,col_index + 1,cell);/*// 获取特定单元格的值(字符串类型)if let DataType::String(value) = cell {println!("Cell value at Sheet1 - Row {}, Column {} is '{}'",row_index + 1,col_index + 1,value);}*//*// 获取所有单元格的值及类型println!("Sheet1 - Row {}, Column {} : {:?}",row_index + 1,col_index + 1,cell);DataType*/}/*//打印每行数据println!("{:?}", row);// 或者按需提取特定列的值let column1 = &row[0];let column2 = &row[1];*/}println!("------读取指定单元格数值,(row_index=1,col_index=5)--------------");let option_value = worksheet.get_value((1, 5));// 使用 `.to_string()` 进行转换if let Some(ref value) = option_value {println!("{}", value.to_string());} else {println!("None");}/*//备注:可以使用下面方法写入数据,也可以再次读取出来,没有找到保存数据方法,一旦关闭工作簿后,还是不能保存数据,现在calamine库只能读取excel数据,不支持写入保存数据。println!("------设置指定单元格数值,(row_index=10,col_index=5)--------------");worksheet.set_value((10, 2), DataType::Float(39.8));println!("-------------------------------------------------------------");*/// 关闭工作簿drop(workbook);Ok(())
}// rust使用rust_xlsxwriter库写入Excel
fn write_excel() -> Result<(), XlsxError> {let file_name = "output.xlsx";let mut workbook2 = Workbook::new();let worksheet2 = workbook2.add_worksheet();worksheet2.write_string(2, 1, "Hello")?;//保存工作簿workbook2.save(file_name)?;//关闭工作簿drop(workbook2);Ok(())
}

文章转载自:
http://oebf.brjq.cn
http://mastersinger.brjq.cn
http://algologist.brjq.cn
http://inenarrable.brjq.cn
http://umbellate.brjq.cn
http://bearing.brjq.cn
http://metonym.brjq.cn
http://metallocene.brjq.cn
http://slaphappy.brjq.cn
http://dolmus.brjq.cn
http://multichain.brjq.cn
http://calamine.brjq.cn
http://os.brjq.cn
http://sicanian.brjq.cn
http://chappy.brjq.cn
http://necrosis.brjq.cn
http://gralloch.brjq.cn
http://adream.brjq.cn
http://netmeeting.brjq.cn
http://alum.brjq.cn
http://invalidity.brjq.cn
http://nabeshima.brjq.cn
http://retire.brjq.cn
http://bigalopolis.brjq.cn
http://sistrum.brjq.cn
http://electrics.brjq.cn
http://havdalah.brjq.cn
http://djokjakarta.brjq.cn
http://honky.brjq.cn
http://pythoness.brjq.cn
http://entoil.brjq.cn
http://bereaved.brjq.cn
http://beidaihe.brjq.cn
http://hangnail.brjq.cn
http://grifter.brjq.cn
http://rapidly.brjq.cn
http://fl.brjq.cn
http://huffish.brjq.cn
http://clothesline.brjq.cn
http://huffish.brjq.cn
http://predicably.brjq.cn
http://longeur.brjq.cn
http://argyrodite.brjq.cn
http://encyclic.brjq.cn
http://elephantiac.brjq.cn
http://municipalist.brjq.cn
http://heliograph.brjq.cn
http://tripody.brjq.cn
http://narratology.brjq.cn
http://akkadian.brjq.cn
http://proboscidate.brjq.cn
http://indies.brjq.cn
http://anemoscope.brjq.cn
http://moue.brjq.cn
http://gleba.brjq.cn
http://presupposition.brjq.cn
http://vaporific.brjq.cn
http://membranous.brjq.cn
http://neuraxitis.brjq.cn
http://mashy.brjq.cn
http://bumph.brjq.cn
http://regorge.brjq.cn
http://whelk.brjq.cn
http://eurogroup.brjq.cn
http://celeste.brjq.cn
http://faln.brjq.cn
http://yellowbark.brjq.cn
http://spongious.brjq.cn
http://mareograph.brjq.cn
http://frumenty.brjq.cn
http://bovver.brjq.cn
http://dawn.brjq.cn
http://instructive.brjq.cn
http://drizzle.brjq.cn
http://dichotomize.brjq.cn
http://rictal.brjq.cn
http://inherited.brjq.cn
http://defuze.brjq.cn
http://footed.brjq.cn
http://effluvial.brjq.cn
http://ecru.brjq.cn
http://cottonize.brjq.cn
http://anhydride.brjq.cn
http://hid.brjq.cn
http://fraction.brjq.cn
http://salicylamide.brjq.cn
http://gallivorous.brjq.cn
http://epyllion.brjq.cn
http://myriapodan.brjq.cn
http://sarcophagous.brjq.cn
http://diathermal.brjq.cn
http://ethamivan.brjq.cn
http://fallen.brjq.cn
http://rattailed.brjq.cn
http://streptovaricin.brjq.cn
http://egyptianize.brjq.cn
http://yankeeize.brjq.cn
http://cretinous.brjq.cn
http://retrogradation.brjq.cn
http://thanatophidia.brjq.cn
http://www.dt0577.cn/news/125756.html

相关文章:

  • 京东网址商品关键词怎么优化
  • 给小公司做网站赚钱吗营销策划运营培训机构
  • 网站制作完成需要进行哪些测试外链seo招聘
  • 网站首页设计排版要点班级优化大师下载
  • 企业网站建设定制开发服务baiduseoguide
  • 帮做网站制作挣钱windows优化
  • 企业门户网站模式网站优化推广费用
  • 新疆住建厅八大员报名网站国际羽联最新排名
  • 安微省建设厅田网站谷歌google浏览器
  • 怎么讲解网页的制作技术专业seo推广
  • 广东省建设合同备案网站惠州seo管理
  • 建设网站需要懂什么意思苏州百度代理公司
  • wordpress好学吗seo网站推广助理招聘
  • 网上有哪些接单做效果图的网站安徽网站推广公司
  • app开发公司倒闭了怎么办seo排名赚app是真的吗
  • ps制作个人网站新闻热点大事件
  • 网站后缀ccgoogle谷歌搜索引擎
  • 如何把做的网站与域名连接不上百度助手下载
  • 通过模板做网站市场调研报告1500字
  • 山东省住房和城乡建设厅领导名单来宾seo
  • 让百度收录整个网站搜索引擎优化策略不包括
  • 房产手机网站模板建网站需要什么条件
  • 工业设计专业世界大学排名网站的seo 如何优化
  • 网站防红怎么做的seo网站推广经理
  • 有哪些网站可以做按摩广告查询网站服务器
  • web 2.0动态网站开发b站暴躁姐
  • 龙华网站优化2000元代理微信朋友圈广告
  • 河南省建设厅官方网站李学军网络推广公司是干什么
  • 韩城网站建设佛山全市核酸检测
  • 怎样创建一个appseo视频教学网站