1. 首页
  2. 数据库
  3. 其它
  4. Python 使用xlwt模块将多行多列数据循环写入excel文档的操作

Python 使用xlwt模块将多行多列数据循环写入excel文档的操作

上传者: 2021-01-04 02:09:07上传 PDF文件 65.42KB 热度 30次
我就废话不多说了,大家还是直接看代码吧~ #!/usr/bin/python # -*- coding: utf-8 -*- import xlwt import re def host_regex(dataline): host_regex = r"(.*?)" host = re.findall(host_regex, dataline) if host: return host[0] def ip_regex(dataline): ip_regex = r"(.*?)" ip = re.findall(ip_regex, dat
下载地址
用户评论