Skip to content

Commit ff43c75

Browse files
authored
Create DataExcelReader.py
1 parent 05e5c2f commit ff43c75

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

DataExcelReader.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Max Base
2+
#
3+
import json
4+
5+
def readExel(fileTxt):
6+
reader = open(fileTxt)
7+
try:
8+
context=reader.read()
9+
context=context.strip()
10+
# print(context)
11+
rows=context.split('\n')
12+
# print(rows)
13+
for i in range(len(rows)):
14+
rows[i]=rows[i].split('\t')
15+
# print(rows[i])
16+
return rows
17+
finally:
18+
reader.close()
19+
return []
20+
21+
arr=readExel('input.txt')
22+
print(arr)

0 commit comments

Comments
 (0)