Commit 323ffdc2 authored by 张彦钊's avatar 张彦钊

add print

parent 33ef5de5
...@@ -50,14 +50,13 @@ def con_sql(sql): ...@@ -50,14 +50,13 @@ def con_sql(sql):
def queue_compare(old_list, new_list): def queue_compare(old_list, new_list):
# 去掉前面的"diary|" # 去掉前面的"diary|"
print("test") old_list = list(map(lambda x: int(x[6:]),old_list))
print(old_list[:6])
print(new_list[:6])
old_list = list(map(lambda x:x[6:],old_list))
temp = list(range(len(old_list))) temp = list(range(len(old_list)))
x_dict = dict(zip(old_list, temp)) x_dict = dict(zip(old_list, temp))
print(x_dict)
temp = list(range(len(new_list))) temp = list(range(len(new_list)))
y_dict = dict(zip(new_list, temp)) y_dict = dict(zip(new_list, temp))
print(y_dict)
i = 0 i = 0
for key in x_dict.keys(): for key in x_dict.keys():
if x_dict[key] != y_dict[key]: if x_dict[key] != y_dict[key]:
......
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