Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在此处的文件资源中:https ://developers.google.com/drive/v2/reference/files#resource
如何从我获得的文件资源中的父母那里获取唯一的 parentID?
在 python 中,如果文件资源是f并且只有 1 个父级:
f
parentId = f['parents'][0]['id']