如何使用python访问MTP USB设备 [英] How to access an MTP USB device with python

查看:627
本文介绍了如何使用python访问MTP USB设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过python中的USB电缆使用MTP来读写Galaxy Nexus手机? 我在Windows 7计算机上.

How can I read from and write to my Galaxy Nexus phone, using MTP over a USB cable in python? I'm on a windows 7 computer.

推荐答案

一种方法是安装ADB(android调试桥,SDK的一部分),并将其作为python的子进程启动.除其他事项外,ADB还可用于读取或写入android设备.

One way to do this would be to install ADB (android debugging bridge, part of the SDK) and launch it as a child process from python. ADB can be used to, among other things, read from or write to, an android device.

这篇关于如何使用python访问MTP USB设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆