📜  迭代元组列表 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:00.193000             🧑  作者: Mango

代码示例2
#for [("hello", 1)...]
#using the dict() method
for k, v on dict(listOfTuples).items():
    print(k , v)
#output : hello 1