feat: added saving to result-no-indent.json
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,5 +2,5 @@
|
|||||||
*.xlsx
|
*.xlsx
|
||||||
__pycache__
|
__pycache__
|
||||||
.idea
|
.idea
|
||||||
result.json
|
result*.json
|
||||||
groups.json
|
groups.json
|
||||||
|
|||||||
5
main.py
5
main.py
@@ -194,7 +194,10 @@ def main():
|
|||||||
result['stat']['total_parsing_time'] = t.step()
|
result['stat']['total_parsing_time'] = t.step()
|
||||||
|
|
||||||
json.dump(result, open('result.json', 'w'), indent=2, ensure_ascii=False)
|
json.dump(result, open('result.json', 'w'), indent=2, ensure_ascii=False)
|
||||||
print("Saved to result.json")
|
print("Saved to result.json indent=2")
|
||||||
|
|
||||||
|
json.dump(result, open('result-no-indent.json', 'w'), ensure_ascii=False)
|
||||||
|
print("Saved to result-no-indent.json")
|
||||||
|
|
||||||
print("Faileds:")
|
print("Faileds:")
|
||||||
print(faileds)
|
print(faileds)
|
||||||
|
|||||||
Reference in New Issue
Block a user