我不理解文档中给定示例的语法。 例如,我从未使用过,也没有指定要下载的文件或应下载到的路径。
import asyncio
@asyncio.coroutine
def run_gets(client):
coroutines = [client.drive('me').request().get_async() for i in range(3)]
for future in asyncio.as_completed(coroutines):
drive = yield from future
print(drive.id)
loop = asyncio.get_event_loop()
loop.run_until_complete(run_gets(client))
https://github.com/OneDrive/onedrive-sdk-python#async-operations