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