comparing 2 dictionaries with different keys: Order values of dict x in the same order as keys are ordered of dict y

后端 未结 0 1434
鱼传尺愫
鱼传尺愫 2021-01-22 10:18

How to sort that values of x are all in the same order of y? Both dictionaries have different keys.

x = {0: \'C\', 1: \'N\', 2: \'H\', 24: \'C\', 25: \'C\', 26: \         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题