=True)#"/>
您当前的位置 :实况网-重新发现生活>资讯频道 > 图片新闻 > 正文
小米13原装数据线多场
2023-06-11 19:27:42 来源:互联网

import

usb


(相关资料图)

.

core

# find USB devices

dev

=

usb

.

core

.

find

;">=

True

)

# loop through devices, printing vendor and product ids in decimal and hex

for

cfg

in

dev

:

# Check if the device is a TYPEC device

if

cfg

.

bDeviceClass

==

and

cfg

.

bDeviceSubClass

==

and

cfg

.

bDeviceProtocol

==

:

print

;">"Device ID: "

,

hex

;">.

idVendor

)

,

":"

,

hex

;">.

idProduct

)

)

关键词:

相关阅读
分享到:
版权和免责申明

凡注有"实况网-重新发现生活"或电头为"实况网-重新发现生活"的稿件,均为实况网-重新发现生活独家版权所有,未经许可不得转载或镜像;授权转载必须注明来源为"实况网-重新发现生活",并保留"实况网-重新发现生活"的电头。