re问题nltk问题 re问题 1、错误描述: TypeError: expected string or buffer TypeError: can't use a string pattern on a bytes-like object 解决办法: str(urlopen("http://pythonscraping.com/files/inaugurationSpeech.txt").read(),'utf-8') nltk问题