simplifiedapp.py 文件源码

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

项目:nba-stats-twilio-sms-bot 作者: elizabethsiegle 项目源码 文件源码
def parse_data(data):
     cols = ['name', "age", "gp", "w", "l","min" ,"pts", "fgm", "fga",
     "fg%", "3pm", "3pa", "ftm", "fta", "ft%" ,"oreb", "dreb", "reb",
     "ast", "tov",      "stl", "blk", "pf", "dd2", "td3"]

     stat_col = cols.index(data)
     player_col = 0

     wb = load_workbook("nbastats.xlsx")
     ws = wb['Sheet1']
     for row in ws.values:
         yield row[player_col].lower(), row[stat_col]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号