【发布时间】:2016-10-25 08:29:29
【问题描述】:
我有一个清单
resultlist = [[(u'Star', 68), (u'army', 68), (u'merged Into Party', 50)],
[(u'dorlands Suffix', 60), (u'Human Development Index', 57), (u'champion', 45)],
[(u'world Tournament Gold', 50), (u'worldwide', 50), (u'Continent', 50)],
[(u'Human Development Index', 54), (u'Rank Single', 54), (u'champion', 54)],
[(u'classification', 68), (u'reign', 62), (u'introduction Date', 57)],
[(u'Human Development Index', 75), (u'humanity', 71), (u'XML Schema', 60)],
[(u'load Limit', 60), (u'world Tournament Gold', 45), (u'champion', 45)],
[(u'worldwide', 95), (u'world Tournament Gold', 86), (u'rid Id', 63)],
[(u'distance Laps', 55), (u'department Code', 50), (u'kazakhstani Tenge', 50)],
[(u'department Code', 72), (u'function Start Date', 57), (u'date Act', 54)]]
数值>=70的元素如何保存。
例如,我期望的结果如下所示:
finalresult= [[(u'Human Development Index', 75), (u'humanity', 71)],
[(u'worldwide', 95), (u'world Tournament Gold', 86)],
[(u'department Code', 72)]]
final_words=[u'Human Development Index',u'humanity',u'worldwide','world Tournament Gold',u'department Code']
【问题讨论】: