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