import yaml · with open('filename.yaml') as it: · conf = yaml.load(it) · # Use conf here; file is automatically closed · # conf is a data structure: dictionary or ...
確定! 回上一頁