📅  最后修改于: 2022-03-11 14:46:28.247000             🧑  作者: Mango
text=input("enter the words:")
length=len(text)
check=text[-3:]
if length>=3:
if check=="ing":
check=check.replace('ing','ly')
take=length-3
print(text[:take]+check)
else:
print(text+'ing')