Skip to content

Commit daa074e

Browse files
authored
Merge pull request #23 from kindsnake/patch-1
修正了写入csv时存在空行的问题, 适用于py2和py3
2 parents a7febd8 + 58903bb commit daa074e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coord_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def convert():
4343
results.append(result)
4444

4545
with open(OUTPUT, 'w') as output_file:
46-
output_file_writer = csv.writer(output_file)
46+
output_file_writer = csv.writer(output_file, lineterminator='\n')
4747

4848
with open(INPUT, 'r') as input_file:
4949
input_file_reader = csv.reader(input_file)

0 commit comments

Comments
 (0)