data_list=[]

col=["a", "b", "c", "d"]
jdata={"a":1, "b":2, "c":3, "d":4}

for j in jdata:
    result=[ j[h] and j.setdefault(h) if h in j.keys() else None for h in col]
    data_list.append(tuple(result))
    print(result)

相关文章:

  • 2022-12-23
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2022-01-04
猜你喜欢
  • 2022-03-07
  • 2022-12-23
  • 2021-05-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案