代码示例:(标识:python_tuple_length)
python_tuple_length.py
thistuple = ("apple", "banana", "cherry")
print(len(thistuple))
运行结果: