how to define new list from a sublist under a condition

后端 未结 0 411
野性不改
野性不改 2021-01-13 13:39

I have a sub-list and I want to create with item[0] a new list if item[1] > 0.7.

a = [[\'wind\', \'0.06\'], [\'atmosphere\', \'0.08\'], [\'meteorology\', \'0.07\']

相关标签:
回答
  • 消灭零回复
提交回复
热议问题