需要先装pywin32,windows下调用winapi的接口 复制代码 代码如下:## _*_ coding:UTF-8 _*___author__ = ‘shanl’ import win32apiimport win32conimport win32guifrom ctypes import *import time VK_CODE = { ‘backspace’:0x08, ‘tab’:0x09, ‘clear’:0x0C, ‘enter’:0x0D, ‘shift’:0x10, ‘ctrl’:0x11, ‘alt’:0x12, ‘pau