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))
相關文章
相關標籤/搜索