📌  相关文章
📜  获取列表python代码示例中项目的所有索引

📅  最后修改于: 2022-03-11 14:45:29.310000             🧑  作者: Mango

代码示例3
#Example List
list = ['apples', 'bannas', 'grapes']
#Use Known Entites In The List To Find The Index Of An Unknown Object
Index_Number_For_Bannas = list.index('apples')
#Print The Object
print(list[Index_Number_For_Bannas])