📜  python 读取两个字符串之间的文件 - Python 代码示例

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

代码示例1
inRecordingMode = False
for line in file:
    if not inRecordingMode:
        if line.startswith(''):
            inRecordingMode = True
    elif line.startswith(''):
        inRecordingMode = False
    else:
        yield line