# -*- coding:utf-8 -*-
# /usr/bin/python
'''
-------------------------------------------------
File Name : read_write
Description : AIM:
Functions: 1.
2.
Envs : python ==
pip install -i https://pypi.douban.com/simple
Author : yanerrol
Date : 2020/4/24 17:32
CodeStyle : 规范,简洁,易懂,可阅读,可维护,可移植!
-------------------------------------------------
Change Activity:
2020/4/24 : text
-------------------------------------------------
'''
import json
class jsonRW(object):
def __init__(self,dicts,filepath):
self.dicts = dicts
self.filepath = filepath
def write(self,):
'''写json'''
with open(self.filepath,'w') as f:
json.dump(self.dicts, f)
def read(self,):
with open(self.filepath,