odin enc import int 中文 Coding pen all true

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)

YAML 對中文的處理