python3.x - 用Python写了个程序调用word,运行完后再手动打开word文档就变慢了,这是为啥?
PHP中文网
PHP中文网 2017-04-18 10:04:34
0
1
596
PHP中文网
PHP中文网

认证0级讲师

reply all(1)
伊谢尔伦

You changed .docx to .doc


Has nothing to do with this. The documents in my folder are originally in .doc format, and the suffix name has not been changed. And I just changed the .docx in the program to .doc, but the result is still the same, word will be opened very slowly

@movi

Check if your document is opening very slowly~

Too many formats, pictures, external links...


Move the word object outside for~

    word=wc.Dispatch('Word.Application')
    for path1 in os.listdir(paths):
        …………

    word.Quit()   
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template