(data, file_path)
保存成json文件
    :param data:
    :param json_path:
    :param file_name:
    :return:
保存成json文件
    :param data:
    :param json_path:
    :param file_name:
    :return:
保存成json文件 : param data : : param json_path : : param file_name : : return :
def save_json(data, file_path):
    '''
    保存成json文件
    :param data:
    :param json_path:
    :param file_name:
    :return:
    '''
    if not isinstance(file_path, Path):
        file_path = Path(file_path)
    # if isinstance(data,dict):
    #     data = json.dumps(data)
    with open(str(file_path), 'w') as f:
        json.dump(data, f)
def save_json ( data , file_path ) : if not isinstance ( file_path , Path ) : file_path = Path ( file_path ) # if isinstance(data,dict): #     data = json.dumps(data) with open ( str ( file_path ) , 'w' ) as f : json . dump ( data , f )