# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param cost int整型一维数组 # @return int整型 # class Solution: def minCostClimbingStairs(self , cost: List[int]) -> int: # write code here n = len(cost) # 求得列表的长度 dp = [0] * n # 设置一个与cost长度一样的空列表 dp[0:2] = cost[0:2...