1、使用下面代码,安装必要的文件
!pip install -U -q PyDrive
from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
from google.colab import auth
from oauth2client.client import GoogleCredentials
import os
import pandas as pd
auth.authenticate_user()
gauth = GoogleAuth()
gauth.credentials = GoogleCredentials.get_application_default()
drive = GoogleDrive(gauth)
2、获取ID,谷歌云盘上每个文件夹都有唯一的ID,网址的后面一串字符就是,使用这个ID打印出文件夹下面文件的ID
listed = drive.ListFile({'q': "title contains 'test_set.csv'and '1cBRHd3JDA7sbApZ2C912xYoA-z1YM__f' in parents"}).GetList()
for f