Bai1

huuductu avatar
huuductu
python
10/27/2022 1:22 PM
288 B
12
Indexable
import re

fileName = input()
with open(fileName, 'rb') as file:
    for line in file:
        t = re.match("^[tc].*re+.*",line.decode('utf-8'))
        if t:
            print(line.decode('utf-8'), end=" ")
Editor is loading...