python 讀取csv文件中有中文出現亂碼–解決方法之一
import codecs
with codecs.open('xx/xx/xx', 'rb', 'gbk') as csvfile:
for line in csvfile:
pass
希望知道其他方法的小夥伴可在評論裏面貼出其他方法
python 讀取csv文件中有中文出現亂碼–解決方法之一
import codecs
with codecs.open('xx/xx/xx', 'rb', 'gbk') as csvfile:
for line in csvfile:
pass
希望知道其他方法的小夥伴可在評論裏面貼出其他方法
class MetaCls(type): def __new__(cls, *args, **kwargs): print("in MetaCls") # return super(Meta