Как прочитать несколько файлов в цикле в Python
import numpy as np
files = ["a.txt", "b.txt"]
for file in files:
print(np.loadtxt(file, skiprows=1))
Clumsy Capybara
import numpy as np
files = ["a.txt", "b.txt"]
for file in files:
print(np.loadtxt(file, skiprows=1))