How can I access each element of a pair in a pair list?

前端 未结 0 1501
温柔的废话
温柔的废话 2021-02-11 17:20

I have a list called pairs.

pairs = [(\"a\", 1), (\"b\", 2), (\"c\", 3)]

And I can access elements as:

for x in pairs:
    prin         


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