python 元组中元组转为字典时间:2023-03-09 08:49:48 #create a tuple tuplex = ((, "w"),(, "r")) print(dict((y, x) for x, y in tuplex))