This commit is contained in:
xyj 2024-03-09 15:15:42 +08:00
parent e948a14409
commit b004b94a9a
1 changed files with 11 additions and 7 deletions

View File

@ -22,6 +22,8 @@ def is_black(black):
def dict_equal(dict1, dict2): def dict_equal(dict1, dict2):
try:
if len(dict2) != len(dict1): if len(dict2) != len(dict1):
return False return False
for k, v1 in dict1.items(): for k, v1 in dict1.items():
@ -31,6 +33,8 @@ def dict_equal(dict1, dict2):
if k == "Point": if k == "Point":
if len(v1[0]) != len(v2[0]): if len(v1[0]) != len(v2[0]):
return False return False
except:
return False
return True return True