emailText = open('email/ham/6.txt','rb').read()
TypeError: cannot use a string pattern on a bytes-like object
解决方法:
emailText = open('email/ham/6.txt','rb').read().decode('GBK')
emailText = open('email/ham/6.txt','rb').read()
TypeError: cannot use a string pattern on a bytes-like object
解决方法:
emailText = open('email/ham/6.txt','rb').read().decode('GBK')
本文标题:TypeError: cannot use a string p
本文链接:https://www.haomeiwen.com/subject/wxzaeftx.html
网友评论