📅  最后修改于: 2022-03-11 14:57:50.487000             🧑  作者: Mango
def pull_kaggle_data(username,key):
import json
! mkdir .kaggle
token = {"username":username,"key":username}
with open(".kaggle/kaggle.json", "w") as file:
json.dump(token, file)
! cp .kaggle/kaggle.json ~/.kaggle/kaggle.json
================================================================================
pull_kaggle_data(username,key)
! kaggle competitions download -c malware-classification