String help
Padraig Brady
Padraig at Linux.ie
Mon Oct 7 09:31:03 EDT 2002
More information about the Python-list mailing list
Mon Oct 7 09:31:03 EDT 2002
- Previous message (by thread): String help
- Next message (by thread): String help
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
CheapSkate wrote:
> Hi, I got
> a string = "aaa,bbb,ccc"
> I want to seperate the string into 3 string "aaa" "bbb" "ccc"
> How do I do it?
>
> I know I need to use split.
> but I don't know how, even after reading it.
>
> Can someone give me an e.g!
"aaa,bbb,ccc".split(',')
Pádraig.
- Previous message (by thread): String help
- Next message (by thread): String help
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list