摘要:
写入数据: # -*- coding:utf-8 -*- import xlwt workbook = xlwt.Workbook() # 新建一个工作簿 sheet = workbook.add_sheet("tab") # 在工作簿中新建一个表格 title=["title1","title2" 阅读全文
摘要:
# -*- coding:utf-8 -*- import re mystr="qqq key:www.baidu.com<br>key:www.tengxun.com<br>" pattern = re.compile(r'key:(.*?)<br>') result = pattern.find 阅读全文