Python之使用xlwt模塊將多行多列數據循環寫入excel文檔

代碼以下:python #!/usr/bin/python # -*- coding: utf-8 -*- import xlwt import re def host_regex(dataline): host_regex = r"<host>(.*?)</host>" host = re.findall(host_regex, dataline) if host:
相關文章
相關標籤/搜索