📅  最后修改于: 2022-03-11 14:47:02.457000             🧑  作者: Mango
>>> a = ["foo", "bar", "baz"]
>>> for i in reversed(a):
... print(i)
...
or
>>> for i, e in reversed(list(enumerate(a))):
... print(i, e)