html = requests.get(url, cookies = cook).content
html = requests.get(url, cookies = cook).text
html = bytes(bytearray(html, encoding='utf-8'))
取消\n和空格
Posted on 2016年11月9日 by gogoforit
con = info.replace(‘\n’,”) //前面的是要替代的,后面的是替代成什么
print(con)