使用urllib.urlopen(url)的时候报错google
whitespace_trans = string.maketrans(_whitespace, ' ' * len(_whitespace))url
AttributeError: 'module' object has no attribute 'maketrans'spa
google到这个页面http://hi.baidu.com/chb_seaok/item/438f7b3faf28bf88b711db0b。string
解决问题。it