delete column content

jessica cindyqjm at gmail.com
Mon Nov 30 03:56:24 EST 2009


On 11月30日, 上午2时48分, Vlastimil Brom <vlastimil.b... at gmail.com> wrote:
> 2009/11/29 Francesco Pietra <francesco.pie... at accademialucchese.it>:
>
> > Hi:
> > How to replace with blank the single-character in column 21 of a pdb
> > file (in pdb numbering it is column 22). Attached is an incomplete
> > exercise with slices. I am unable to get real plain text with gmail.
>
> > Thanks for help
>
> > francesco pietra
>
> > --
> >http://mail.python.org/mailman/listinfo/python-list
>
> Do you mean something like
>
> >>> line="abcdefghijklmnopqrstuvwxyz"
> >>> line[:21]+line[22:]
>
> 'abcdefghijklmnopqrstuwxyz'
>
> ?
>
> vbr

http://www.mbthome.net/ mbt shoes



More information about the Python-list mailing list