我正在尝试显示一个网页,但由于它不会将对象视为字符串,因此无法正确显示换行符(显示\n)。我怎样才能正确地使结果成为一个字符串,因为这似乎不起作用。谢谢!
\n
result = urllib.request.urlopen(requesturl).read() return str(result)
python string httpresponse python-3.5
httpresponse ×1
python ×1
python-3.5 ×1
string ×1