Untitled
Anonymous
python
09/26/2024 5:55 PM
320 B
22
Indexable
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.load(f)
return dataEditor is loading...
Leave a Comment