In [34]:
print('please enter a word')
a1=str(input())
if(a1.endswith('s')):
print('加 -es ')
elif(a1.endswith('sh')):
print('加 -es ')
elif(a1.endswith('ch')):
print('加 -es ')
elif(a1.endswith('x')):
print('加 -es ')
elif(a1.endswith('y')):
print('以辅音字母+y结尾 变y 为i再加es')
else:
print('以辅音字母+y结尾 变y 为i再加es')
In [ ]:
In [ ]: