Python 3.2 split the string values in a list -


i have list below:

rawinput = ['corp\\asre', 'corp\\banjar', 'corp\\bicknk', 'corp\\daniele'] 

i want able

users = [] users = rawinput.split(",") print(users) 

how do in python 3.2? thanks.

what have,

rawinput = ['corp\\asre', 'corp\\banjar', 'corp\\bicknk', 'corp\\daniele']

is list of strings already. can iterate through list. don't need split anything.

if had this,

rawinput = "corp\\asre, corp\\banjar, corp\\bicknk, corp\\daniele"

rawinput.split(',') return above list.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -