python3 元组,列表,字典相互转换
列表转元组
tuple(list)
元组转列表
list(tuple)
字典转元组
c={"a":1,"b":2}
tuple(c.keys())
tuple(c.values())
字典转列表
c={"a":1,"b":2}
list(c.keys())
list(c.values())
有什么不同见解可以在评论区共同讨论
tuple(list)
list(tuple)
c={"a":1,"b":2}
tuple(c.keys())
tuple(c.values())
c={"a":1,"b":2}
list(c.keys())
list(c.values())