我自己也试了一些点 感觉没什么问题啊┭┮﹏┭┮
s=input() if s.rfind("er")==len(s)-2 or s.rfind("ly")==len(s)-2: s=s[:-2] elif s.rfind("ing")==len(s)-3: s=s[:-3] print(s)