python 元组
发布网友
发布时间:2022-05-24 05:43
我来回答
共2个回答
热心网友
时间:2023-09-13 20:25
L = ({'trorNumber': u'1501637780956'}, {'trorNumber': u'1506504400409'})
L2 = list(map(lambda x:x['trorNumber'], L))
L3 = [x['trorNumber'] for x in L]
for obj in L:
print obj['trorNumber']
print L2
print L3
1501637780956
1506504400409
[u'1501637780956', u'1506504400409']
[u'1501637780956', u'1506504400409']
热心网友
时间:2023-09-13 20:26
print(list(map(lambda x:x['trorNumber'], t)))