说我有这个清单:
li = ["a", "b", "a", "c", "x", "d", "a", "6"]
至于帮助告诉我,没有内置函数返回最后一次出现的字符串(如反之index).基本上,我怎样才能找到"a"给定列表中的最后一次出现?
index
"a"
python list last-occurrence
last-occurrence ×1
list ×1
python ×1