forked from miczar1/djfz-24_25
10 lines
256 B
Python
10 lines
256 B
Python
|
import re
|
||
|
|
||
|
with open('polish_wiki_excerpt.in', encoding='utf8') as file:
|
||
|
lines = file.readlines()
|
||
|
pattern = r'\d+'
|
||
|
for line in lines:
|
||
|
line = line.strip()
|
||
|
x = re.findall(pattern, line)
|
||
|
if x:
|
||
|
print(' '.join(x))
|