小米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
==
:
;">"Device ID: "
,
hex
;">.
idVendor
)
,
":"
,
hex
;">.
idProduct
)
)
關鍵詞:
相關閱讀
版權和免責申明
凡注有"實況網-重新發現生活"或電頭為"實況網-重新發現生活"的稿件,均為實況網-重新發現生活獨家版權所有,未經許可不得轉載或鏡像;授權轉載必須注明來源為"實況網-重新發現生活",并保留"實況網-重新發現生活"的電頭。