由於我們是要把html轉為pdf,所以需要手動wkhtmltopdf 。 ... beautifulsoup4 # 用於操作html. pip install pdfkit # wkhtmltopdf 的Python封裝包.
確定! 回上一頁