主页
Python
Python Tuple index() 方法
demo_ref_tuple_index
运行 ❯
×
更改方向
保存代码
更改主题
thistuple = (1, 3, 7, 8, 7, 5, 4, 6, 8, 5) x = thistuple.index(8) print(x)
3