📜  如何在 python 代码示例中从文件中读取特定单词

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

代码示例2
fo = open("output.txt", "r+")
str = fo.readline()
str = str[7:11]
print "Read String is : ", str
fo.close()