Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1ce1445

Browse files
try 24
1 parent286ab65 commit1ce1445

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎24.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,13 @@ def one_way(im, x, y, ok_points_dic, max_key):
6060
to_be_add_dict[str(max_key)]=way_ok_points
6161
x=point[0]
6262
y=point[1]
63-
way_ok_points.append((x,y))
64-
forelementinto_be_delete:
65-
delok_points_dic[element]
63+
new_points=to_be_add_dict.get(str(max_key))
64+
new_points.append((x,y))
65+
to_be_add_dict[str(max_key)]=new_points
6666
forkeyinto_be_add_dict.keys():
6767
ok_points_dic[key]=to_be_add_dict[key]
68+
forelementinto_be_delete:
69+
delok_points_dic[element]
6870

6971

7072
deffind_next_point(im,x,y,ok_points,way):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp