【发布时间】:2019-09-20 05:05:03
【问题描述】:
从下面的文本文件中,将文本文件读入 python 程序并根据第一个字母对所有单词进行分组。以字典的形式表示组。其中凝视字母是“键”,所有以字母开头的单词都是“值”列表。
文本文件是:
Among other public buildings in a certain town, which for many reason it will be prudent to
refine from mentioning, and to which i will assign no fictitious name, there is one anciently
common to most towns, great or small.
【问题讨论】:
标签: file-handling