查看到报错位置
解决办法:
def write(self, s):
self.fp.write(s)
改成:
def write(self, s):
self.fp.write(bytes(s,'UTF-8'))
查看到报错位置
解决办法:
def write(self, s):
self.fp.write(s)
改成:
def write(self, s):
self.fp.write(bytes(s,'UTF-8'))