示例
file=open()
line=file.readline()
print(line)
while line:
if "string" in line:
print(line, end="")
line = file.readline()
file.close()
示例
file=open()
line=file.readline()
print(line)
while line:
if "string" in line:
print(line, end="")
line = file.readline()
file.close()