git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

multiple lines in one line


Hello,I working on some file operations with python.I have 2 text file which is consist of lines such as apple_pie 0.3434 0.6767 0.2312 and other text file has apple 0.2334 0.3412 0.123
pie 0.976 0.75654 0.2312
I want to append lines like apple_pie 0.3434 0.6767 0.2312 0.2334 0.3412 0.123(values for apple) 0.976 0.75654 0.2312(values for pie) in one line. does anybody know how to do it ?Thanks...