关于文档资料排序的问题
因为公司防火墙无法上传档案请问要如何写程式,才能将文件一的资料,变成文件二的资料格式
文件一 : 左右两份A,B档案资料
A B
0 OS_FUNC_N 0 OS_FUNC_N
1 OS_PPMU_N 1 OS_PPMU_N
2 OS_FUNC_N_RT 2 OS_FUNC_N_RT
3 OS_FUNC_P 3 OS_FUNC_P
4 OS_PPMU_P 4 OS_PPMU_P
5 OS_FUNC_P_RT 5 OS_FUNC_P_RT
6 TEST_PowerShort 6 WIRE_SWEEP
7 TEST_EFUSE_CP_INFORMATION_CHECK 7 TEST_PowerShort
8 TEST_IDDQ 8 TEST_EFUSE_CP_INFORMATION_CHECK
9 TEST_NANDTREE 9 TEST_IDDQ
10 TEST_ATPG_STUCK_PTN_MERGE 10 TEST_NANDTREE
11 TEST_ATPG_TRANS_PTN_MERGE 11 TEST_ATPG_STUCK_PTN_MERGE_33M
12 TEST_CLK_PROBE 12 TEST_ATPG_STUCK_PTN_MERGE
13 TEST_CLK_PROBE_NP_LOW 13 TEST_ATPG_TRANS_PTN_MERGE
14 TEST_CLK_PROBE_NP_HIGH 14 TEST_CLK_PROBE
15 TEST_MBIST 15 TEST_CLK_PROBE_NP_LOW
16 TEST_GBE_T01 16 TEST_CLK_PROBE_NP_HIGH
17 TEST_GBE_T02 17 TEST_MBIST
18 TEST_GBE_T03_sendD 18 TEST_GBE_T01
19 TEST_GBE_T04_all 19 TEST_GBE_T02
20 TEST_GBE_T06_P0_TTR 20 TEST_GBE_T03_sendD
21 TEST_GBE_T04_P0 21 TEST_GBE_T04_all
22 TEST_GBE_T05_P0 22 TEST_GBE_T05_Interpolation
23 TEST_GBE_T06_P0 23 TEST_GBE_T06_Interpolation
24 TEST_GBE_T06_P1_TTR 24 TEST_GBE_T14
25 TEST_GBE_T04_P1 25 TEST_GBE_T07_sendD
26 TEST_GBE_T05_P1 26 TEST_GBE_T07_1_sendD
27 TEST_GBE_T06_P1 27 TEST_GBE_T08_sendD
28 TEST_GBE_T06_P2_TTR 28 TEST_GBE_T09_sendD
29 TEST_GBE_T04_P2 29 TEST_GBE_T10_sendD
30 TEST_GBE_T05_P2 30 TEST_GBE_T11_sendD
31 TEST_GBE_T06_P2 31 TEST_GBE_T12_sendD
32 TEST_GBE_T06_P3_TTR 32 TEST_GBE_T13_2_ATE_GBE_TXT_MAX
33 TEST_GBE_T04_P3 33 TEST_GBE_T15
34 TEST_GBE_T05_P3 34 TEST_GBE_T16_dig
35 TEST_GBE_T06_P3 35 TEST_GBE_T17
36 TEST_GBE_T07_sendD 36 TEST_USB_P0_T01
37 TEST_GBE_T07_1_sendD 37 TEST_USB_P0_T02
38 TEST_GBE_T08_sendD 38 TEST_USB_P0_T12
39 TEST_GBE_T09_sendD 39 TEST_USB_P0_T13
40 TEST_GBE_T10_sendD 40 TEST_USB_P0_T14
41 TEST_GBE_T11_sendD 41 TEST_USB_P0_T15
42 TEST_GBE_T12_sendD 42 TEST_USB_P0_T16
43 TEST_GBE_T13 43 TEST_USB_P0_T17
44 TEST_GBE_T14 44 TEST_USB_P1_T01
45 TEST_GBE_T15 45 TEST_USB_P1_T02
46 TEST_GBE_T16_dig 46 TEST_USB_P1_T12
47 TEST_GBE_T17 47 TEST_USB_P1_T13
48 TEST_USB_P0_T01 48 TEST_USB_P1_T14
49 TEST_USB_P0_T02 49 TEST_USB_P1_T15
50 TEST_USB_P0_T12 50 TEST_USB_P1_T16
51 TEST_USB_P0_T13 51 TEST_USB_P1_T17
52 TEST_USB_P0_T14 52 TEST_PCIE_P0_T01
53 TEST_USB_P0_T15 53 TEST_PCIE_P0_T02
54 TEST_USB_P0_T16 54 TEST_PCIE_P0_T04
55 TEST_USB_P0_T17 55 TEST_PCIE_P0_T05
56 TEST_USB_P1_T01 56 TEST_PCIE_P0_T051
57 TEST_USB_P1_T02 57 TEST_PCIE_P0_T06
58 TEST_USB_P1_T12 58 TEST_PCIE_P0_T061
59 TEST_USB_P1_T13 59 TEST_PCIE_P0_T07
60 TEST_USB_P1_T14 60 TEST_PCIE_P0_T08
61 TEST_USB_P1_T15 61 TEST_PCIE_P1_T101
62 TEST_USB_P1_T16 62 TEST_PCIE_P1_T102
63 TEST_USB_P1_T17 63 TEST_PCIE_P1_T106
64 TEST_PCIE_P0_T01 64 TEST_PCIE_P1_T107
65 TEST_PCIE_P0_T02 65 TEST_PCIE_P1_T109
66 TEST_PCIE_P0_T04 66 TEST_PCIE_P1_T301
67 TEST_PCIE_P0_T05 67 TEST_PCIE_P1_T302
68 TEST_PCIE_P0_T051 68 TEST_PCIE_P1_T304
69 TEST_PCIE_P0_T06 69 TEST_PCIE_P1_T309
70 TEST_PCIE_P0_T061 70 TEST_PCIE_P1_T401
71 TEST_PCIE_P0_T07 71 TEST_PCIE_P1_T502
72 TEST_PCIE_P0_T08 72 TEST_ABIST_PCIE_P1_T202_T203
73 TEST_PCIE_P1_T101 73 ABIST_Flash_Firmware_Version_Check
74 TEST_PCIE_P1_T102 74 Thermal_IC
75 TEST_PCIE_P1_T106 75 AUXADC_CALIBRATION
76 TEST_PCIE_P1_T107 76 AUXADC_EFUSE_BLANK_CHECK_DSSC
77 TEST_PCIE_P1_T109 77 AUXADC_BURN_CODE
78 TEST_PCIE_P1_T301 78 AUXADC_EFUSE_BURN_CHECK_PASS
79 TEST_PCIE_P1_T302 79 ABIST_DDR3_PAT0
80 TEST_PCIE_P1_T304 80 TEST_ABIST_PON_T00
81 TEST_PCIE_P1_T309 81 TEST_ABIST_PON_T01
82 TEST_PCIE_P1_T401 82 TEST_ABIST_PON_T10
83 TEST_PCIE_P1_T502 83 TEST_ABIST_PON_T11
84 TEST_ABIST_PCIE_P1_T202_T203 84 TEST_ABIST_PON_T12
85 ABIST_Flash_Firmware_Version_Check 85 TEST_ABIST_PON_T13
86 Thermal_IC 86 TEST_ABIST_PON_T14
87 AUXADC_CALIBRATION 87 TEST_ABIST_PON_T15
88 AUXADC_EFUSE_BLANK_CHECK_DSSC 88 TEST_EFUSE_BURN_CHECK_7528HU
89 AUXADC_BURN_CODE 89 All_Setting_Restore
90 AUXADC_EFUSE_BURN_CHECK_PASS
91 ABIST_DDR3_PAT0
92 TEST_ABIST_PON_T00
93 TEST_ABIST_PON_T01
94 TEST_ABIST_PON_T10
95 TEST_ABIST_PON_T11
96 TEST_ABIST_PON_T12
97 TEST_ABIST_PON_T13
98 TEST_ABIST_PON_T14
99 TEST_ABIST_PON_T15
100 TEST_EFUSE_BURN_CHECK_7528HU
101 All_Setting_Restore
文件二 : 左右两份A,B档案资料
A B
0 OS_FUNC_N 0 OS_FUNC_N
1 OS_PPMU_N 1 OS_PPMU_N
2 OS_FUNC_N_RT 2 OS_FUNC_N_RT
3 OS_FUNC_P 3 OS_FUNC_P
4 OS_PPMU_P 4 OS_PPMU_P
5 OS_FUNC_P_RT 5 OS_FUNC_P_RT
6 WIRE_SWEEP
6 TEST_PowerShort 7 TEST_PowerShort
7 TEST_EFUSE_CP_INFORMATION_CHECK 8 TEST_EFUSE_CP_INFORMATION_CHECK
8 TEST_IDDQ 9 TEST_IDDQ
9 TEST_NANDTREE 10 TEST_NANDTREE
11 TEST_ATPG_STUCK_PTN_MERGE_33M
10 TEST_ATPG_STUCK_PTN_MERGE 12 TEST_ATPG_STUCK_PTN_MERGE
11 TEST_ATPG_TRANS_PTN_MERGE 13 TEST_ATPG_TRANS_PTN_MERGE
12 TEST_CLK_PROBE 14 TEST_CLK_PROBE
13 TEST_CLK_PROBE_NP_LOW 15 TEST_CLK_PROBE_NP_LOW
14 TEST_CLK_PROBE_NP_HIGH 16 TEST_CLK_PROBE_NP_HIGH
15 TEST_MBIST 17 TEST_MBIST
16 TEST_GBE_T01 18 TEST_GBE_T01
17 TEST_GBE_T02 19 TEST_GBE_T02
18 TEST_GBE_T03_sendD 20 TEST_GBE_T03_sendD
19 TEST_GBE_T04_all 21 TEST_GBE_T04_all
20 TEST_GBE_T06_P0_TTR
21 TEST_GBE_T04_P0
22 TEST_GBE_T05_P0 22 TEST_GBE_T05_Interpolation
23 TEST_GBE_T06_P0 23 TEST_GBE_T06_Interpolation
24 TEST_GBE_T06_P1_TTR
25 TEST_GBE_T04_P1
26 TEST_GBE_T05_P1
27 TEST_GBE_T06_P1
28 TEST_GBE_T06_P2_TTR
29 TEST_GBE_T04_P2
30 TEST_GBE_T05_P2
31 TEST_GBE_T06_P2
32 TEST_GBE_T06_P3_TTR
33 TEST_GBE_T04_P3
34 TEST_GBE_T05_P3
35 TEST_GBE_T06_P3
24 TEST_GBE_T14
36 TEST_GBE_T07_sendD 25 TEST_GBE_T07_sendD
37 TEST_GBE_T07_1_sendD 26 TEST_GBE_T07_1_sendD
38 TEST_GBE_T08_sendD 27 TEST_GBE_T08_sendD
39 TEST_GBE_T09_sendD 28 TEST_GBE_T09_sendD
40 TEST_GBE_T10_sendD 29 TEST_GBE_T10_sendD
41 TEST_GBE_T11_sendD 30 TEST_GBE_T11_sendD
42 TEST_GBE_T12_sendD 31 TEST_GBE_T12_sendD
43 TEST_GBE_T13
32 TEST_GBE_T13_2_ATE_GBE_TXT_MAX
44 TEST_GBE_T14
45 TEST_GBE_T15 33 TEST_GBE_T15
46 TEST_GBE_T16_dig 34 TEST_GBE_T16_dig
47 TEST_GBE_T17 35 TEST_GBE_T17
48 TEST_USB_P0_T01 36 TEST_USB_P0_T01
49 TEST_USB_P0_T02 37 TEST_USB_P0_T02
50 TEST_USB_P0_T12 38 TEST_USB_P0_T12
51 TEST_USB_P0_T13 39 TEST_USB_P0_T13
52 TEST_USB_P0_T14 40 TEST_USB_P0_T14
53 TEST_USB_P0_T15 41 TEST_USB_P0_T15
54 TEST_USB_P0_T16 42 TEST_USB_P0_T16
55 TEST_USB_P0_T17 43 TEST_USB_P0_T17
56 TEST_USB_P1_T01 44 TEST_USB_P1_T01
57 TEST_USB_P1_T02 45 TEST_USB_P1_T02
58 TEST_USB_P1_T12 46 TEST_USB_P1_T12
59 TEST_USB_P1_T13 47 TEST_USB_P1_T13
60 TEST_USB_P1_T14 48 TEST_USB_P1_T14
61 TEST_USB_P1_T15 49 TEST_USB_P1_T15
62 TEST_USB_P1_T16 50 TEST_USB_P1_T16
63 TEST_USB_P1_T17 51 TEST_USB_P1_T17
64 TEST_PCIE_P0_T01 52 TEST_PCIE_P0_T01
65 TEST_PCIE_P0_T02 53 TEST_PCIE_P0_T02
66 TEST_PCIE_P0_T04 54 TEST_PCIE_P0_T04
67 TEST_PCIE_P0_T05 55 TEST_PCIE_P0_T05
68 TEST_PCIE_P0_T051 56 TEST_PCIE_P0_T051
69 TEST_PCIE_P0_T06 57 TEST_PCIE_P0_T06
70 TEST_PCIE_P0_T061 58 TEST_PCIE_P0_T061
71 TEST_PCIE_P0_T07 59 TEST_PCIE_P0_T07
72 TEST_PCIE_P0_T08 60 TEST_PCIE_P0_T08
73 TEST_PCIE_P1_T101 61 TEST_PCIE_P1_T101
74 TEST_PCIE_P1_T102 62 TEST_PCIE_P1_T102
75 TEST_PCIE_P1_T106 63 TEST_PCIE_P1_T106
76 TEST_PCIE_P1_T107 64 TEST_PCIE_P1_T107
77 TEST_PCIE_P1_T109 65 TEST_PCIE_P1_T109
78 TEST_PCIE_P1_T301 66 TEST_PCIE_P1_T301
79 TEST_PCIE_P1_T302 67 TEST_PCIE_P1_T302
80 TEST_PCIE_P1_T304 68 TEST_PCIE_P1_T304
81 TEST_PCIE_P1_T309 69 TEST_PCIE_P1_T309
82 TEST_PCIE_P1_T401 70 TEST_PCIE_P1_T401
83 TEST_PCIE_P1_T502 71 TEST_PCIE_P1_T502
84 TEST_ABIST_PCIE_P1_T202_T203 72 TEST_ABIST_PCIE_P1_T202_T203
85 ABIST_Flash_Firmware_Version_Check 73 ABIST_Flash_Firmware_Version_Check
86 Thermal_IC 74 Thermal_IC
87 AUXADC_CALIBRATION 75 AUXADC_CALIBRATION
88 AUXADC_EFUSE_BLANK_CHECK_DSSC 76 AUXADC_EFUSE_BLANK_CHECK_DSSC
89 AUXADC_BURN_CODE 77 AUXADC_BURN_CODE
90 AUXADC_EFUSE_BURN_CHECK_PASS 78 AUXADC_EFUSE_BURN_CHECK_PASS
91 ABIST_DDR3_PAT0 79 ABIST_DDR3_PAT0
92 TEST_ABIST_PON_T00 80 TEST_ABIST_PON_T00
93 TEST_ABIST_PON_T01 81 TEST_ABIST_PON_T01
94 TEST_ABIST_PON_T10 82 TEST_ABIST_PON_T10
95 TEST_ABIST_PON_T11 83 TEST_ABIST_PON_T11
96 TEST_ABIST_PON_T12 84 TEST_ABIST_PON_T12
97 TEST_ABIST_PON_T13 85 TEST_ABIST_PON_T13
98 TEST_ABIST_PON_T14 86 TEST_ABIST_PON_T14
99 TEST_ABIST_PON_T15 87 TEST_ABIST_PON_T15
100 TEST_EFUSE_BURN_CHECK_7528HU 88 TEST_EFUSE_BURN_CHECK_7528HU
101 All_Setting_Restore 89 All_Setting_Restore
既要排文件上下的ID序,又要排文件名称左右可能相同序,实在排不到就让某份文档该行空白,
两个档案的ID和名称不能变。
[此贴子已经被作者于2020-3-27 19:04编辑过]