def onekey_gen(data, code, filename=u'reprotgen 报告自动生成', template=None):
    '一键生成所有可能需要的报告\n    包括\n    描述统计报告\n    单选题的交叉分析报告\n    '
    try:
        summary_chart(data, code, filename=filename, template=template)
    except:
        print('整体报告生成过程中出现错误，将跳过..')
        pass
    print(('已生成 ' + filename))
    cross_qlist = pre_cross_qlist(data, code)
    if (len(cross_qlist) == 0):
        return None
    for cross_qq in cross_qlist:
        qq = cross_qq[0]
        cross_order = cross_qq[1]
        if (('name' in code[qq]) and (code[qq]['name'] != '')):
            filename = '{}_差异分析'.format(code[qq]['name'])
        else:
            filename = '{}_差异分析'.format(qq)
        save_dstyle = None
        try:
            cross_chart(data, code, qq, filename=filename, cross_order=cross_order, save_dstyle=save_dstyle, template=template)
            print(('已生成 ' + filename))
        except:
            print((filename + '生成过程中出现错误，将跳过...'))
            pass
    return None
一键生成所有可能需要的报告
包括
描述统计报告
单选题的交叉分析报告
def onekey_gen(data, code, filename=u'reprotgen 报告自动生成', template=None):
    '一键生成所有可能需要的报告\n    包括\n    描述统计报告\n    单选题的交叉分析报告\n    '
    try:
        summary_chart(data, code, filename=filename, template=template)
    except:
        print('整体报告生成过程中出现错误，将跳过..')
        pass
    print(('已生成 ' + filename))
    cross_qlist = pre_cross_qlist(data, code)
    if (len(cross_qlist) == 0):
        return None
    for cross_qq in cross_qlist:
        qq = cross_qq[0]
        cross_order = cross_qq[1]
        if (('name' in code[qq]) and (code[qq]['name'] != )):
            filename = '{}_差异分析'.format(code[qq]['name'])
        else:
            filename = '{}_差异分析'.format(qq)
        save_dstyle = None
        try:
            cross_chart(data, code, qq, filename=filename, cross_order=cross_order, save_dstyle=save_dstyle, template=template)
            print(('已生成 ' + filename))
        except:
            print((filename + '生成过程中出现错误，将跳过...'))
            pass
    return None