假设我有以下字符串:
"present present present presenting presentation do do doing "
我正在根据它们的频率按降序计算字符串中的单词:
I'm using GroupBy count
present 3
do 2
doing 1
presenting 1
presentation 1
然后,我正在阻止这些词:
using array [ , ] or any other structure
present 3
do 2
do 1
present 1
present 1
最后,我想将单词重新数入字典。所以输出应该是:
present 5
do 3
任何人都可以帮忙吗??提前致谢。