1、
>>> a = dict(a = 111, b = 222, c = 333, d = 444) >>> for i in reversed(a): ## 逆向输出 print(i,a[i]) d 444 c 333 b 222 a 111
2、
>>> a {'a': 111, 'b': 222, 'c': 333, 'd': 444} >>> b = {} >>> for i in reversed(a): b[i] = a[i] >>> b {'d': 444, 'c': 333, 'b': 222, 'a': 111}