Skip to content

Commit

Permalink
Update JsonToCsv.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lovewanli authored Oct 19, 2020
1 parent 509a690 commit e944195
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions JsonToCsv.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def listprint(lists, filepath):
filename = filepath.split('.')[0] + " " + datetime.datetime.now().strftime('%Y%m%d%H%M%S%f') + ".csv"
plusfilename.append(filename)
with open(filename, "w") as fo:
#utf-8 head
fo.write('\xEF\xBB\xBF')
fo.write(lines[0:len(lines) - 1] + '\n')
for line in lists:
Expand Down

0 comments on commit e944195

Please sign in to comment.