python代码
str1 = input()
tab = ["abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"," "]
c = 0
for i in str1:
for j in tab:
if i in j:
c += j.index(i) + 1
print(c)
python代码
str1 = input()
tab = ["abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"," "]
c = 0
for i in str1:
for j in tab:
if i in j:
c += j.index(i) + 1
print(c)