BillBie

导航

2020年8月19日 #

获取网页中的charset

摘要: m = re.compile('<meta .*(http-equiv="?Content-Type"?.*)?charset="?([a-zA-Z0-9_-]+)"?', re.I).search(response_text) if m and m.lastindex == 2: charset 阅读全文

posted @ 2020-08-19 19:32 BillBie 阅读(8) 评论(0) 推荐(0)