2、统计以下英文中单词出现的频率,以字典形式输出出现前十的单 词。 If you fight like a married couple, talk like best friends, flirt like first loves, and protect each other like siblings, you're meant to be together. Don’t be pushed by your problens. Be led by your dreams. Live the life you want to live. Be the person you want to remenber years from nov. You’ll never find the right person, if you can’t let go of the vrong one. He lies. She cries. He's not sorry, but he apologizes. She complains, he doesn't change. But yet, she still stays. Life only comes around once. So do whatever makes you happy and be with whoever nakes you snile. Friendship means understanding, not agreenent. It means forgiveness, not forgetting. It neans the memories last, even if contact is lost. You can’t keep chasing someone who clearly doesn't want to be in your life anynore. Let them go, you'll thank yourself one day. When you can fly, do not give up flying. When you can drean, do not give up the drean. When you can love, H
时间: 2024-04-05 19:29:50 浏览: 39
统计指定的文本文件(英文)中,每个单词的出现频率,输出按字典序排列的单词频度表。
好的,我已经统计出给定文本中单词出现频率,并以字典形式输出出现前十的单词。以下是统计结果:
{'you': 6, 'be': 4, 'can': 3, 'not': 3, 'the': 3, 'to': 3, 'give': 2, 'up': 2, 'life': 2, 'he': 2}
出现频率前十的单词是:
1. you
2. be
3. can
4. not
5. the
6. to
7. give
8. up
9. life
10. he
阅读全文