#哈哈哈,python只需要一行代码 class Solution: def findPeakElement(self , nums: List[int]) -> int: return nums.index(max(nums))