📜  python代码示例中的文件搜索

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

代码示例1
with open('largeFile', 'r') as inF:
    for line in inF:
        if 'myString' in line:
            # do_something