小
小師妹
Unregistered / Unconfirmed
GUEST, unregistred user!
file :talk.txt
時間 人物1 人物2 聊天內容
[10:07:27] a b i want to make friends with u ,can i ?
[10:07:28] a b un be silly to meet ur online friend
[10:07:33] a b do
u often come here?
[10:07:37] b a why not?
[10:07:43] a c hi, free?
[10:07:47] a d r u a good student?
[10:07:54] b a do
you like music?
[10:07:56] b c hi, nice to meet you.
[10:08:04] c d i am inaustralia
[10:08:12] c a i am in australia
[10:08:19] d c sorry,!
[10:08:25] a b do
u like this chat room?
[10:08:27] b a hi, there?
[10:08:35] a c ?
[10:08:35] a b what is the meaning of add
----------------------------------------------------
以上的人物對話顯然很亂,我想整理一下,達到以下效果(要考慮時間順序)
組1
a b fadfdasf
b a fadfasfsa
a b fadfasdfasdf
a b fadfasfas
b a adfasdfasd
組2
a c fasfasd
c a fafdsa
a c fadfasdfasfdas
組3
b c afasdsdf
b c hjhlkj
c b fadf;lj;
......
怎么進行排序處理呢怎么排序呢?
時間 人物1 人物2 聊天內容
[10:07:27] a b i want to make friends with u ,can i ?
[10:07:28] a b un be silly to meet ur online friend
[10:07:33] a b do
u often come here?
[10:07:37] b a why not?
[10:07:43] a c hi, free?
[10:07:47] a d r u a good student?
[10:07:54] b a do
you like music?
[10:07:56] b c hi, nice to meet you.
[10:08:04] c d i am inaustralia
[10:08:12] c a i am in australia
[10:08:19] d c sorry,!
[10:08:25] a b do
u like this chat room?
[10:08:27] b a hi, there?
[10:08:35] a c ?
[10:08:35] a b what is the meaning of add
----------------------------------------------------
以上的人物對話顯然很亂,我想整理一下,達到以下效果(要考慮時間順序)
組1
a b fadfdasf
b a fadfasfsa
a b fadfasdfasdf
a b fadfasfas
b a adfasdfasd
組2
a c fasfasd
c a fafdsa
a c fadfasdfasfdas
組3
b c afasdsdf
b c hjhlkj
c b fadf;lj;
......
怎么進行排序處理呢怎么排序呢?