def get_data(cont, filename):
stream = open(filename, 'r')
profile = yaml.load(stream) # Player information is stored here.
data = yaml.dump(profile, default_flow_style = False, encoding=('utf-8'))
return profile[cont]
评论列表
文章目录