任务一:Python实现wordcount
对如下文本进行统计:“Got this panda plush toy for my daughter's birthday, who loves it and takes it everywhere. It's soft and super cute, and its face has a friendly look. It's a bit small for what I paid though. I think there might be other options that are bigger for the same price. It arrived a day earlier than expected, so I got to play with it myself before I gave it to her.”
统计结果如终端所示:
任务二:Vscode连接InternStudio,并对wordcount代码进行debug
1.设置好断点(第7行和第15行),并开始debug
2.不断运行下一步进行debug,执行word_count[word] +=1,并在右边状态栏查看变量更新,如右边红框所示: