[Eric] a question for raw_input().split(',')

Tiemeng Li tiemeng2000 at gmail.com
Tue Sep 22 02:16:55 BST 2009


Hi
i have a question in using Eric4 as follow:

code as this:

*t = raw_input("enter a list: ").split(',')*
*print t*
*
*
and i thought the result would be:

*>>> enter a list: 1,2,3,4,5
['1', '2', '3', '4', '5']
*
*
*
but the result is:

*>>> enter a list: 1,2,3,4,5*
*[u'1', u'2', u'3', u'4', u'5']*
*
*
why?!
Appreciate for answer!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/eric/attachments/20090922/beb28894/attachment.html


More information about the Eric mailing list