Commit cfd2ec69 authored by rico.liu's avatar rico.liu

更新进度条bug

parent 38bb2227
...@@ -20,13 +20,13 @@ def ComplicatedDataDict(path): ...@@ -20,13 +20,13 @@ def ComplicatedDataDict(path):
df = pd.read_excel(path) df = pd.read_excel(path)
process_index = 0 process_index = 0
index = Index() index_ = Index()
for index,row in df.iterrows(): for index,row in df.iterrows():
try: try:
print(index(process_index,len(df)-1), end='%') print(index_(process_index,len(df)-1), end='%')
except: except:
print(index(process_index,1), end='%') print(index_(process_index,1), end='%')
process_index+=1 process_index+=1
cursor_zi_new.execute(f"update ShuJuZiDian_Cfg set stdvalue = '{row['stdvalue']}',simplevalue = '{row['simplevalue']}' where id = {row['id']}") cursor_zi_new.execute(f"update ShuJuZiDian_Cfg set stdvalue = '{row['stdvalue']}',simplevalue = '{row['simplevalue']}' where id = {row['id']}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment