发布时间:2019-07-03 12:50:43编辑:auto阅读(2796)
python转html页面为pdf:
安装wkhtmltopdf略
#!/usr/bin/python
import pdfkit
pdfkit.from_url('http://google.com','baidu.pdf')
:wq
pdfkit.from_string('hello,python','baidu.pdf')
pdfkit.from_file('aa.html','baidu.pdf')
上一篇: Python 正则表达式:compile
下一篇: Python的流程控制 - if条件
54088
40845
35357
31013
25904
25642
24079
19607
15684
15163
1899°
1747°
1837°
1916°
1909°
2080°
2041°
1864°
1951°
1935°