內置函數enumurate()傳入參數必須是一個序列 返回一個元組抵皱,包含計數值和迭代到的序列中的值 for index, i in enumerate(list): ··· list.index(值) #獲取該元素的下標