1

我将我的安卓手机连接到我的 Windows 笔记本电脑。在 Windows 资源管理器中,我的照片所在的目录是:

Computer\GT-I9100\Phone\DCIM\Camera\

在python中我这样做:

phone_dir="Computer\GT-I9100\Phone\DCIM\Camera"
os.listdir(phone_dir) 

我得到:

FileNotFoundError: [WinError 3] The system cannot find the path specified: 'Computer\\GT-I9100\\Phone\\DCIM\\Camera\\*.*'

编辑:到目前为止,我最好的方法是在 android 设备上启用大容量存储,然后 python 可以看到它。但我宁愿不必这样做。所以将保持问题开放。

4

0 回答 0