python清除html文件中内容的方法:
1、使用join方法,代码为【pat = re.compile('>(.*?)<')''.join(pat.findall(test))】;
2、使用compile方法。