📅  最后修改于: 2022-03-11 14:46:58.654000             🧑  作者: Mango
# assuming you were not looking for the number -2
# -2 as an index to an array-like object (as a list) will return
# its second-to-last element
# Here is an example
l = [1,27,34,5,6,7,5,84,289,63,52]
print(l[-2])
>>> 63