c = [-10,-5,0,5,3,10,15,-20,25] print c.index(min(c)) # 返回最小值 print c.index(max(c)) # 返回最大值 转载于:https://www.cnblogs.com/wangjq19920210/p/9959907.html