📌  相关文章
📜  python读取文本文件查找字符串 - Python代码示例

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

代码示例1
f = open(filename,  "r")
   whattoReturn = "None"
   if strToFind in f.read():
      whattoReturn = strToFind