📜  读取文件并拆分单词 python 代码示例

📅  最后修改于: 2022-03-11 14:47:01.906000             🧑  作者: Mango

代码示例1
f = open("yourfile.txt", "r")

content = f.read()
words = content.split()

f.close()