检查字符串" Life is short. I use python"中是否包含字符串"python",若包含则替换为"Python"后输出新字符串,否则输出原字符串。
s = "Life is short.I use python"print(s.replace('python', 'Python'))