📌  相关文章
📜  倒数第二个索引python代码示例

📅  最后修改于: 2022-03-11 14:45:52.691000             🧑  作者: Mango

代码示例1
# python code to get 2nd to last item in a list
my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
print(my_list[-2])