You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import subprocess
|
|
|
|
def html_to_word_pandoc(html_file, output_file):
|
|
subprocess.run(['pandoc', html_file, '-o', output_file])
|
|
|
|
# 使用示例
|
|
html_to_word_pandoc('../static/1.html', '../static/output.docx') |