怎样输出上下两行之间的特定符号中间的值啊?多谢!
python新手,如下的文件,要输出最后一列的除了“—”以外的值,也就是“(74”之类的。同时也要输出上下括号之间的值,比如“(22”和“65)|22”之间的“—”。应该怎样实现呢?求助求助啊!先拜谢拉!bc/cctv/00/cctv_0001 0 0 Standing VBG (TOP(SINV(VP* stand 01 - Speaker#1 * (V*) * -
bc/cctv/00/cctv_0001 0 1 tall JJ (S(ADJP*)) - - - Speaker#1 * (ARGM-ADV*) * -
bc/cctv/00/cctv_0001 0 2 on IN (PP* - - - Speaker#1 * (ARGM-LOC* * -
bc/cctv/00/cctv_0001 0 3 Taihang NNP (NP* - - - Speaker#1 (LOC* * * (74
bc/cctv/00/cctv_0001 0 4 Mountain NNP *))) - - - Speaker#1 *) *) * 74)
bc/cctv/00/cctv_0001 0 5 is VBZ (VP*) be 03 - Speaker#1 * * (V*) -
bc/cctv/00/cctv_0001 0 6 the DT (NP(NP* - - - Speaker#1 (WORK_OF_ART* * * (22
bc/cctv/00/cctv_0001 0 7 Monument NNP *) - - - Speaker#1 * * * -
bc/cctv/00/cctv_0001 0 8 to IN (PP* - - - Speaker#1 * * * -
bc/cctv/00/cctv_0001 0 9 the DT (NP* - - - Speaker#1 * * * (65
bc/cctv/00/cctv_0001 0 10 Hundred NNP (NML* - - - Speaker#1 * * * -
bc/cctv/00/cctv_0001 0 11 Regiments NNPS *) - - - Speaker#1 * * * -
bc/cctv/00/cctv_0001 0 12 Offensive NNP *))) - - - Speaker#1 *) * * 65)|22)
bc/cctv/00/cctv_0001 0 13 . . *)) - - - Speaker#1 * * * -