""" # File : test.py # Time :2024-06-23 11:59 # Author :FEANGYANG # version :python 3.7 # Contact :1071082183@qq.com # Description: """ import yaml # 假设你的YAML内容存储在一个名为 data.yaml 的文件中 with open('../test.yaml', 'r') as file: data = yaml.safe_load(file) # 打印读取的数据 print(data)