0379デフォルトの名無しさん (ワッチョイ 464e-24l8 [153.192.183.62])垢版2017/09/14(木) 22:13:44.61ID:BBzVEwC70 yamlを辞書のようではなくクラスのように アクセスしたいのですが、可能でしょうか? ■test.yml a: - test - test2 x: y ■スクリプト import yaml f = open('test.yml','r') data = yaml.load(f) data['x'] #'y' data.x #'y' このようにできますか?