代码示例:(标识:python_list_negative_index)
python_list_negative_index.py
thislist = ["apple", "banana", "cherry"]
print(thislist[-1])
运行结果: