with open("English-dictionary-one.txt", "r") as f: 
    text=f.read().splitlines() #获取 文件全部数据 不要回车, 返回结果是一个列表

更多推荐

python 读取文件去除回车