文件在ubuntu16.04系统打开是乱码

1

python2.7 :  u'╜█'.encode('cp437').decode('gbk')

2

解压时指定字符集 

unzip -O CP936 guangdong_round1_train1_20180903.zip

3

在最开始加上# coding:utf-8

猜你喜欢

转载自blog.csdn.net/tony2278/article/details/82942808