ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.

#-*-coding:utf8-*-
from pywinauto.application import Application
app = Application(backend="uia").start("notepad.exe")

运行报错:ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.

改为:#-*-coding:utf-8-*-

这样就可以了

posted @ 2020-05-09 10:52  腹肌猿  阅读(1375)  评论(0编辑  收藏  举报