From 32451b4797f2643671cdc88bdbd150b0f2a7c1d9 Mon Sep 17 00:00:00 2001 From: tsere Date: Wed, 22 Jan 2020 16:25:52 +0000 Subject: [PATCH] Update 'maze.py' --- maze.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maze.py b/maze.py index a956310..51715f7 100644 --- a/maze.py +++ b/maze.py @@ -286,13 +286,13 @@ while True: print('ignore') continue move() - y=createJson() - ser.write(str(y).encode()) f = open('output.txt', 'w', encoding=('utf-8')) for j in maze: print(j) f.write(str(j)) f.write('\n\n') f.close() + y=createJson() + ser.write(str(y).encode()) except: pass