bot.py 文件源码

python
阅读 62 收藏 0 点赞 0 评论 0

项目:chopped_bot 作者: computer-lab 项目源码 文件源码
def build_arrays():
    json_key = json.load(open('chopped bot-610249be55b6.json'))
    scope = ['https://spreadsheets.google.com/feeds']
    credentials = SignedJwtAssertionCredentials(json_key['client_email'], json_key['private_key'].encode(), scope)
    gc = gspread.authorize(credentials)
    sh = gc.open("choppedbot")
    weird_sheet = sh.worksheet("weird")
    normal_sheet = sh.worksheet("normal")
    weird_array = weird_sheet.col_values(1)
    normal_array = normal_sheet.col_values(1)

    return normal_array, weird_array
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号