================================= MadEdit v0.2.8 Beta ================================= About: ----- MadEdit is a cross-platform Text/Hex Editor written in C++ & wxWidgets. MadEdit supports many useful functions, e.g. SyntaxHighlightings, WordWraps,
在写爬虫,往csv写入文件时候报错
'gbk' codec can't encode character '\U0001f370' in position 5: illegal multibyte sequence
去一看名字我懵逼了是个emoji????
原来代码是这么写的
设置csv文件位UTF-8,代码改为
for i in b:
persons = str(i).replace('u','').replace('\'','')