问题:给定一个文本文件,找出以d为结尾的所有单词(无重复)?
文本内容1.txt,所在目录为:c:/users/15011/desktop,内容为:
Sliced noodles are known as one of the five famous noodles in China. There is an old story about sliced noodles. In the Yuan Dynasty, they confiscated all the metal from every family, and required 10 households to use a kitchen knife. One day an old man went to get a knife, but the knife was taken away by others. The whole family waited for the knife to cut noodles, but the knife didn’t come back. Suddenly, she remembered the iron sheet in her hand and said: cut noodles with this iron sheet! But the iron sheet is too thin and soft to cut the noodles. So she put the dough on a board, left hand holding board, right hand holding iron, standing at the edge of the pot to hack noodles, One by one the noodles fell into the pot , cooked and fished into the bowl, poured soup for the family to eat. That’s why sliced noodles are created.
程序:
运行结果
END