python - 如何使用Python BeautifulSoup 将输出写入html 文件 ... i html = soup.prettify("utf-8") with open("output1.html", "wb") as file: file.write(html)
確定! 回上一頁