cara membaca beberapa file dalam satu loop di 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))