import pandas as pd

table = pd.read_csv('ShuJuZiDian_Cfg.csv')
param_lyst = set(table['参数项'].tolist())
for param in param_lyst:
    f = open(f'data/0101/{param}.txt','w',encoding='utf-8')
    param_table = table[table['参数项']==param]
    param_table = param_table.sample(frac=1)
    for ori_param,standard_param in zip(param_table['原始参数值'],param_table['标准参数值']):
        f.write(f'{ori_param}\t{standard_param}\n')
    f.close()