问题
I'm trying to find a way to convert headings' auto-numbering to text
In MS Word's VBA it is just:
Sub Test()
ActiveDocument.Range.ListFormat.ConvertNumbersToText
End Sub
but how about Python 3.x?
回答1:
Python-docx has the styles
attribute. Documentation and examples of use here: http://python-docx.readthedocs.io/en/latest/user/styles-using.html
来源:https://stackoverflow.com/questions/49194396/python-auto-numbering-in-headings-to-text-docx-files