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

18
main.py
View File

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