from yaml import load,dump
f = open('xx.ymal',encoding='utf-8')
l = load(f)
print(f)
w = open('xx_copy.ymal','w',wencoding = 'utf-8')
dump(l,w,allow_unicode = True)