over 8 years ago

word自动保存

import win32com
from win32com.client import Dispatch, constants
import time

while True:
    try:

        w = win32com.client.Dispatch('Word.Application')
        w.ActiveDocument.Save()
        time.sleep(20)
    except:
        pass
douban spider →
 
comments powered by Disqus