#P31. 选择你喜爱的水果

选择你喜爱的水果

题目描述

程序中保存了七种水果的名字,要求用户输入一个与水果有关的句子。程序在已存储的水果名字中搜索,以判断句子中是否包含七种水果的名称。如果包含,则用词组“ Brussels sprouts”替换句子中出现的水果单词,并输出替换后的句子。如果句子中没有出现这些水果的名字,则输出“ You must not enjoy fruit."。假设七种水果的名字为: apples,bananas,peaches,cherries,pears,oranges, strawberries。

输入格式

有多行,每行是一个字符串(长度不超过200)。每行输入中只会有一个水果名称,不会存在1行输入包括多种水果名称或重复水果名称的情况。

输出格式

多行字符串。

样例

I really love peaches on my cereal.
I'd rather have a candy bar
apples are wonderful with lunch
I really love Brussels sprouts on my cereal.
You must not enjoy fruit.
Brussels sprouts are wonderful with lunch