The Python index() method returns the index number of first occurrence of the ... the whole list x = MyList.index('MAR') print("The index of 'MAR' is:", x).
確定! 回上一頁