python2.7-encoding报错

原代码中:self.file = open('data.json', 'w', encoding='utf-8')

运行报错:

修改:(导入IO模块)

原文地址:https://www.cnblogs.com/songge1209/p/8431412.html