编写程序,检查字符串“Life is short.I use python”中是否包含字符串“python”,若包含则替换为“python”后输出新字符串,否则输出原字符串
题目写错了吧:
s = "Life is short.I use python" print(s.replace('python', '你要替换后的字符串'))