Thank you! Python is really magic, even merge file can use "+". On Apr 5, 2005 9:20 AM, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2005-04-05, could ildg <[EMAIL PROTECTED]> wrote: > > > I want to merge file A and file B into a new file C, All of > > them are binary. > > file('C','wb').write(file('A','rb').read()+file('B','rb').read()) > > -- > Grant Edwards grante Yow! ... or were you > at driving the PONTIAC that > visi.com HONKED at me in MIAMI last > Tuesday? > -- > http://mail.python.org/mailman/listinfo/python-list >
-- 鹦鹉聪明绝顶、搞笑之极,是人类的好朋友。 直到有一天,我才发觉,我是鹦鹉。 我是翻墙的鹦鹉。 -- http://mail.python.org/mailman/listinfo/python-list