Python Value Error: not enough values to unpack

后端 未结 4 1984
囚心锁ツ
囚心锁ツ 2021-01-29 08:02

Get the following error in code, unsure of what it means or what I did wrong. Just trying to initialize three list values to empty collections:

nba,nfl,mlb = []
         


        
4条回答
  •  北恋
    北恋 (楼主)
    2021-01-29 08:44

    The issue is , left hand side values are not enough to assign to the number of variable on the left so instead do

    nba,nfl,mlb = [],[],[]
    

提交回复
热议问题