标签:val his yaml ror yam error typeerror erro size
python 2.7 问题
data_file = open("F:\\MyPro\\data.yaml", "r", encoding=‘utf-8‘)
运行的时候报错:TypeError: ‘encoding‘ is an invalid keyword argument for this function
如何解决:
import io data_file = io.open("F:\\MyPro\\data.yaml", "r", encoding=‘utf-8‘)
TypeError: 'encoding' is an invalid keyword argument for this function
标签:val his yaml ror yam error typeerror erro size
原文地址:http://www.cnblogs.com/2bjiujiu/p/7898782.html