TypeError: name() argument 1 must be unicode, not str

只须要在输出格式前加上u便可python 如:code with open(filename,'w',encoding='utf-8') as f: f.write(u'{}\n'.format(index))
相关文章
相关标签/搜索