01 随便写写
class Solution(object):
def reverseDegree(self, s):
"""
:type s: str
:rtype: int
"""
ans = 0
for index in range(len(s)):
loc = index + 1
value = ord("z") - ord(s[index]) + 1
ans += loc*value
return ans