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.

6 lines
278 B

2 weeks ago
import subprocess
docx_file='./Docx/《动能定理》巩固练习.docx'
temp_markdown='./Res/《动能定理》巩固练习.md'
subprocess.run(['pandoc', docx_file, '-f', 'docx', '-t', 'markdown', '-o', temp_markdown,
'--extract-media=./Res/Images/'])