{"width":"100%","published":"2017-05-02 00:00:00","description":"yaml.dump(ordered_dict)\u3092\u5b9f\u884c\u3059\u308b\u3060\u3051\u3060\u3068\u3001Python\u306e\u30af\u30e9\u30b9\u540d\u3082\u51fa\u529b\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3068\u901a\u5e38\u306eyaml\u5f62\u5f0f\u3067\u51fa\u529b\u3055\u308c\u308b\u3002 def represent_odict(dumper, instance): return dumper.represent_mapping('tag:yaml.org,2002:map', instance.items()) yaml.add_representer(OrderedDict, represent_odict) return yaml.dump(od, default_flow_style=False) \u53c2\u8003\uff1a qii\u2026","blog_title":"\u65e5\u3005\u7cbe\u9032","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanton0825.hatenablog.com%2Fentry%2F2017%2F05%2F02%2F000000\" title=\"OrderedDict\u3092yaml\u306b\u51fa\u529b\u3059\u308b - \u65e5\u3005\u7cbe\u9032\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","image_url":null,"type":"rich","author_url":"https://blog.hatena.ne.jp/anton0825/","title":"OrderedDict\u3092yaml\u306b\u51fa\u529b\u3059\u308b","url":"https://anton0825.hatenablog.com/entry/2017/05/02/000000","categories":["IT"],"version":"1.0","blog_url":"https://anton0825.hatenablog.com/","author_name":"anton0825","height":"190","provider_url":"https://hatena.blog"}