我想通过python过滤手机(制造商: Realme,操作系统:奥利奥)中的“我的音乐”文件夹。
import os
os.chdir(r'E:') # I am able to change between C and E drive.
os.chdir(r'This PC\realme 3 Pro\Internal shared storage') #throwing below error.FileNotFoundError: WinError 3系统找不到指定的路径:
我听说最新的手机支持MTP和PTP协议来转接,但不支持UMS。
谁能指导我如何获取连接到PC的手机中存在的文件列表?
发布于 2020-06-02 01:16:20
“此PC”不是有效路径。Windows路径应始终以一个字母开头(例如: C:\、D:\、E:\等)。因此,如果你的手机安装在E驱动器上,你应该像这样访问它:
os.chdir(r'E:\realm 3 Pro\...')https://stackoverflow.com/questions/62137313
复制相似问题