开发者

USBView/ Device manager in python

How can I access Devic开发者_JS百科e Manager in python, so that i can get the usb device's serial number/other info through python?


Instead of using the Device Manager (A graphical application), you can programmatically access information about USB devices via PyUSB:

import usb.core
allDevs = usb.core.find(find_all=True)

Now, iterate over allDevs to get information about connected devices.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜