发布时间:2019-07-03 12:50:43编辑:auto阅读(2906)
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条件
54949
41740
36327
31765
26663
26352
24879
20486
16424
15840
2970°
2701°
2801°
2944°
2878°
3142°
3035°
2880°
2870°
2846°