Iterate through a list of lists of 2 values, saving them to variables

前端 未结 0 1210
一整个雨季
一整个雨季 2020-11-29 19:16

I have a list like: d = [(\'red\', 1), (\'blue\', 2), (\'green\', 3))]

I would like to iterate through this list, getting each pairing of word and number and putting

相关标签:
回答
  • 消灭零回复
提交回复
热议问题