Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎样才能创建一个PyDEVMODE对象而不只是将它作为函数调用的返回值win32api.EnumDisplaySettingsEx(name, 0)?
PyDEVMODE
win32api.EnumDisplaySettingsEx(name, 0)
它在 pywintypes 中定义。
>>> import pywintypes >>> pywintypes.DEVMODEType() <PyDEVMODE object at 0x00F38E90>
我很好奇你打算用它做什么?