Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
Home
Python
2D
Application
Buildin Function
Class
Data Structure
Data Type
Database
Development
Dictionary
Event
Exception
File
Function
GUI Pmw
GUI Tk
Language Basics
List
Math
Network
String
System
Thread
Tuple
Utility
XML
Split a string by ',' : String Split « String « Python
Python
String
String Split
Split a string by ','
line =
'bob,hacker,40'
print line.split(
','
)
Related examples in the same category
1.
Splitting strings
2.
A sentence is split up into a list of words
3.
String splits by another string