def dataCode_to_text(df, code=None):
    '将按序号数据转换成文本\n\n    '
    if (df.max().max() > 1):
        sep = '→'
    else:
        sep = '┋'
    if code:
        df = df.rename(code)
    qlist = list(df.columns)
    df['text'] = np.nan
    if (sep in ['┋']):
        for i in df.index:
            w = (df.loc[i, :] == 1)
            df.loc[(i, 'text')] = sep.join(list(w.index[w]))
    elif (sep in ['→']):
        for i in df.index:
            w = df.loc[i, :]
            w = w[(w >= 1)].sort_values()
            df.loc[(i, 'text')] = sep.join(list(w.index))
    df.drop(qlist, axis=1, inplace=True)
    return df
将按序号数据转换成文本
def dataCode_to_text(df, code=None):
    '\n\n    '
    if (df.max().max() > 1):
        sep = '→'
    else:
        sep = '┋'
    if code:
        df = df.rename(code)
    qlist = list(df.columns)
    df['text'] = np.nan
    if (sep in ['┋']):
        for i in df.index:
            w = (df.loc[i, :] == 1)
            df.loc[(i, 'text')] = sep.join(list(w.index[w]))
    elif (sep in ['→']):
        for i in df.index:
            w = df.loc[i, :]
            w = w[(w >= 1)].sort_values()
            df.loc[(i, 'text')] = sep.join(list(w.index))
    df.drop(qlist, axis=1, inplace=True)
    return df