4.2.1 统计文章中单词出现的次数.pptxVIP

  • 1
  • 0
  • 约3.63千字
  • 约 14页
  • 2026-08-05 发布于陕西
  • 举报

问题描述(python:4),(is:3),(a:3),(much:3),(more:3),(and:3),(than:3),(in:3),(as:3)有若干个用空格分隔的英语单词,请你编写程序统计出现次数超过2次的单词及其出现次数。假设单词中只含有大小写英文字母,各单词之间只用若干个空格分隔。输入数据PythonissimpletousebutitisarealprogramminglanguageofferingmuchmorestructureandsupportforlargeprogramsthanshellscriptsorbatchfilescanofferOntheotherhandPythonalsooffersmuchmoreerrorcheckingthanCandbeingaveryhighlevellanguageithashighleveldatatypesbuiltinsuchasflexiblearraysanddictionariesBecauseofitsmoregeneraldatatypesPythonisapplicabletoamuchlargerproblemdomain

文档评论(0)

1亿VIP精品文档

相关文档