Python的生产效率极高,通过使用pypiwin32模块可以快速调用windows API函数,结合Python的高效开发能力,同等时间内比C++能更快的达到目标,pypiwin32模块封装了Win32...site-packages 有帮助文档:PyWin32.chm
文件类API在模块win32file中,进程类API在模块win32process中,win32con定义了所有的常量,,一些难以分类的API则在模块win32api...www.google.com", None, None, SW_SHOWNORMAL) # 打开网页www.google.com
win32api.ShellExecute(None, "explore", "D:\\C+...+", None, None, SW_SHOWNORMAL) # 打开目录D:\C++
win32api.ShellExecute(None, "print", "C:\\Test.txt", None...# 给要打开的程序指定参数;GetDefaultPrinter 取得默认打印机名称 ,GetDefaultPrinterW 取得默认打印机名称 unicode