mirror of
https://github.com/bcomsugi/dasaproject.git
synced 2026-01-10 07:12:37 +07:00
fix different page have 6 column
This commit is contained in:
parent
7325a7ab5f
commit
c0de7cc45b
@ -205,6 +205,19 @@ def read_DN_excel(filename):
|
||||
xylist.append(y)
|
||||
if len(xylist)==5:
|
||||
data[idx]=xylist
|
||||
elif len(x)>5 and (idx % 2)==0 and coly==0:
|
||||
pass
|
||||
print("Different page, seconde line have different column width (6)")
|
||||
boloddcolumn=True
|
||||
for _ in x[:len(x)-2]:
|
||||
print(_)
|
||||
if _ != None:
|
||||
boloddcolumn=False
|
||||
print(boloddcolumn)
|
||||
if boloddcolumn:
|
||||
del x[0]
|
||||
print(x)
|
||||
|
||||
elif coly != 0 and lenList == len(x):
|
||||
for idy, y in enumerate(x):
|
||||
if idy!=coly:
|
||||
@ -245,7 +258,7 @@ def read_DN_excel(filename):
|
||||
|
||||
for idx, x in enumerate(newdata):
|
||||
pass
|
||||
# print(idx, x)
|
||||
print(idx, x)
|
||||
print(f'len newdata={len(newdata)}')
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user