You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
325 B
21 lines
325 B
2 years ago
|
from typing import List
|
||
|
|
||
|
|
||
|
def load_files(paths: List[str]):
|
||
|
for path in paths:
|
||
|
with open(path) as f:
|
||
|
yield f.readlines()
|
||
|
|
||
|
|
||
|
paths = [
|
||
|
"dict_gen.py",
|
||
|
"enum.py",
|
||
|
"for_loop.py",
|
||
|
"gen.py",
|
||
|
"lzy_load.py",
|
||
|
]
|
||
|
|
||
|
for cont in load_files(paths):
|
||
|
# code working with content
|
||
|
print(cont)
|