I know how to get the index of the maximum value in a list. mylist = [-10,0,1] idx_max_value = max(xrange(len(mylist)), key=mylist.
確定! 回上一頁