我正在使用 here 中的 Google Drive 快速入门 Python API 。我想在我的 Windows 系统上找到“drive-python-quickstart.json”文件。它实际存储在哪里? Windows 中“~/.credentials/drive-python-quickstart.json”在哪里?
If modifying these scopes, delete your previously saved credentials
at ~/.credentials/drive-python-quickstart.json
SCOPES = 'https://www.googleapis.com/auth/drive.metadata.readonly'
CLIENT_SECRET_FILE = 'client_secret.json'
APPLICATION_NAME = 'Drive API Python Quickstart'
最佳答案
~
指 Windows 中的根位置。
例如这可以是
C:\Users\<*user-name*>\.credentials
文件夹。
哪里<user-name>
是您的用户名(即 C:\Users\John\.credentials
)
您会发现drive-python-quickstart.json
文件在那里。
关于python - Google Drive API Python 实现的 ~/.credentials/drive-python-quickstart.json 保存在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44052538/