DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to read multiple files in a loop in python
import numpy as np files = ["a.txt", "b.txt"] for file in files: print(np.loadtxt(file, skiprows=1))
PREVIOUS
NEXT
Tagged:
#read
#multiple
#files
#loop
#python
ADD COMMENT
Topic
COMMENT
Name
7+4 =
Submit