how to convert string to list or tuple
flyaflya
flyaflya at gmail.com
Thu May 26 07:53:38 EDT 2005
a = "(1,2,3)"
I want convert a to tuple:(1,2,3),but tuple(a) return ('(', '1', ',',
'2', ',', '3', ')') not (1,2,3)
More information about the Python-list
mailing list