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

前端 未结 0 1795
自闭症患者
自闭症患者 2021-02-11 17:36

I have a list called pairs.

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

And I can access elements as:

for x in pairs:
    prin         


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