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

  • 0
  • 0
  • 约3.69千字
  • 约 16页
  • 2026-08-05 发布于山东
  • 举报

统计文章中单词出现的次数主讲人:李娟重庆市九龙坡职业教育中心

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

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档