...
学习如何生成一个具有新过期时间的刷新访问令牌。
from google.oauth2.credentials import Credentials
try: credentials = Credentials.from_authorized_user_file('token.json') refresh_token(credentials) except: print("请在 token.json 文件中输入您的访问令牌数据")
结论