def read_data(file_name):
if not re.findall(".txt", file_name):
file_name += ".txt"
L = [[] for h in [[] for k in range()]]
with open(file_name) as r:
for d in r:
j = d.split("|")
for i in range(len(L)):
L[i].append(j[i].strip())
return L
def read_data(file_name):
if not re.findall(".txt", file_name):
file_name += ".txt"
L = [[] for h in [[] for k in range()]]
with open(file_name) as r:
for d in r:
j = d.split("|")
for i in range(len(L)):
L[i].append(j[i].strip())
return L
该资源仅限VIP专享下载