×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Python
Posted by: kushedow Кушедов
Added: Oct 16, 2021 2:49 PM
Views: 2335
Tags: no tags
  1. def save_data(data):
  2.     with open('data.json', "w", encoding="utf-8") as f:
  3.         json.dump(data, f)
  4.     return True