发布时间:2019-07-03 12:50:43编辑:auto阅读(2732)
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条件
53532
40354
34757
30517
25394
25183
23597
18876
15175
14688
1151°
1075°
1145°
1165°
1200°
1353°
1314°
1286°
1384°
1327°