This topic created in 4298 days ago, the information mentioned may be changed or developed.
a = """(u'one',{u'a':u"1",u'b':u'2'})
(u'two',{u'ass':u"f1",u'cb':u'2df'})
"""
我如何才能得到{}字典里的数据
1 replies • 2014-12-04 00:09:40 +08:00
 |
|
1
billlee Dec 4, 2014
在确定字符串安全的情况下 list_a = a.split('\n') for item in list_a: ....obj = eval(item) ....dictionary = obj[1]
|