请问p y t h o n 里面两个字典之间的替换怎么实现? 其中一个字典的key是元组见图片,
一行字典解析就ok了
d3 = {tuple(d1[i] for i in k):v for k,v in d2.items()}