Simple系列
Appearance
import yaml f = open('data.yaml', 'r') ystr = f.read() aa = yaml.load(ystr, Loader=yaml.FullLoader) print(aa)
aa就是json字典对象