不解决睡不着
import yaml with open("data.yml", "r", encoding='utf-8') as f: data1 = yaml.safe_load(f) print(data1)