file=open("a.html","w") file.writelines(data) 转载于:https://www.cnblogs.com/huashiyiqike/p/3245413.html