> > > XYZDEFAAcdAA --> XYZ8ADEF2Acd2A
> (RLE), that saved a lot of googles
I have written a rle in my first years in school. It compresses a bitmap
image %50 compression is achivied :) The link :
http://arilaripi.org/index.php?option=com_remository&Itemid=26&func=fileinfo&id=273
And i
On Dec 14, 12:07 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote:
> On Dec 14, 2007 10:54 AM, nirvana <[EMAIL PROTECTED]> wrote:
>
> > I need to count the number of continous character occurances(more than
> > 1) in a file, and replace it with a compressed version, like below
> > XYZDEFAAcdAA
On Dec 14, 2007 10:54 AM, nirvana <[EMAIL PROTECTED]> wrote:
> I need to count the number of continous character occurances(more than
> 1) in a file, and replace it with a compressed version, like below
> XYZDEFAAcdAA --> XYZ8ADEF2Acd2A
>
This sounds like homework. Google for run length e
On Fri, 14 Dec 2007 08:54:58 -0800, nirvana wrote:
> I need to count the number of continous character occurances(more than
> 1) in a file, and replace it with a compressed version, like below
> XYZDEFAAcdAA --> XYZ8ADEF2Acd2A
Great. Then go ahead an implement it. :-)
`itertools.groupb
I need to count the number of continous character occurances(more than
1) in a file, and replace it with a compressed version, like below
XYZDEFAAcdAA --> XYZ8ADEF2Acd2A
Thanks
Sumod
--
http://mail.python.org/mailman/listinfo/python-list