[Tutor] how to remove first '/'
davidwilson at Safe-mail.net
davidwilson at Safe-mail.net
Wed Aug 26 00:15:27 CEST 2009
Thank you for the replies.
-------- Original Message --------
From: Emad Nawfal (عماد نوفل)<emadnawfal at gmail.com>
To: davidwilson at safe-mail.net
Cc: tutor at python.org
Subject: Re: [Tutor] how to remove first '/'
Date: Tue, 25 Aug 2009 18:01:26 -0400
>
>
> On Tue, Aug 25, 2009 at 5:55 PM, <davidwilson at safe-mail.net> wrote:
> >
> > Hello,
> > I want to strip the first '/' from the following:
> >
> > '/path/to/file'
> >
> > How can I do this?
> >
> > Dave
> > _______________________________________________
> > Tutor maillist - Tutor at python.org
> > http://mail.python.org/mailman/listinfo/tutor
>
>
>
> If I understand correctly
> >>> m = '/path/to/file'
> >>> m[1:]
> 'path/to/file'
> >>>
>
>
> --
> لا أعرف مظلوما تواطأ الناس علي هضمه ولا زهدوا في إنصافه كالحقيقة.....محمد الغزالي
> "No victim has ever been more repressed and alienated than the truth"
>
> Emad Soliman Nawfal
> Indiana University, Bloomington
> --------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090825/33152e0b/attachment.htm>
More information about the Tutor
mailing list