Untitled
unknown
python
16 days ago
243 B
2
Indexable
Never
import yaml def yaml_load(filename): ''' use filename variable to open a file load the contents into a variable with yaml and retrun it ''' with open(filename, 'r') as f: data = yaml.safe_load(f) return data
Leave a Comment