python yaml

一、安装PyYAML

 

二、入门参考

 

三、实例

#!/usr/bin/env python

import yaml

f=open("test.yml");

x=yaml.load(f);

print x['ssl']['site_cert']['rsa']['key'];                                                                               

f.close();

运行

image

你可能感兴趣的:(python)