Splitting a String : String join : String : Python examples (example source code) Organized by topic

C++
PHP
Python
Python Home »  String   » [  String join  ]  Screenshots 
 



Splitting a String





li = ['server=mpilgrim', 'uid=sa', 'database=master', 'pwd=secret'] 
s = ";".join(li
print s 

print s.split(";")                                       

print s.split(";"1)                                    

           
       
Related examples in the same category
1.  Joining strings Joining strings
2.  Join a list Join a list
3.  String JOIN String JOIN
4.  Printing a List Printing a List
5.  split and join split and join
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.