1.python3报错:TypeError: can't concat bytes to str
/usr/local/lib/python3.6/codecs.py
502 ###########added by lvpchen
503 #byte
504 #print("==========================",type(self.bytebuffer),type(newdata))
505 #byte2str: 1: mystr = mybyte.decode(); 2:mystr = str(mybyte, encoding="utf-8")
506 #str2byte:
507 if (isinstance(newdata,str)):
508 newdata=newdata.encode(encoding="utf-8")
509 data = self.bytebuffer + newdata
510 #print("##########################",type(data))
511 ###########
879 def open(filename, mode='rb', encoding='utf-8