📜  python tuple to dict - Python 代码示例
📅  最后修改于: 2022-03-11 14:45:37.937000             🧑  作者: Mango
代码示例1
>>> t = ((1, 'a'),(2, 'b'))
>>> dict((y, x) for x, y in t)
{'a': 1, 'b': 2}