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
Post a Comment