import json
from collections import OrderedDict
metadata = json.loads(text, object_pairs_hook=OrderedDict);

metadata中properties的顺序是跟text中定义的顺序是一样的。

相关文章:

  • 2022-12-23
  • 2022-01-24
  • 2022-12-23
  • 2021-09-08
  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-29
  • 2022-12-23
  • 2021-05-19
  • 2021-04-02
  • 2022-01-01
  • 2022-12-23
相关资源
相似解决方案