def index(request): return web.Response(body=b'<h1>Awesome</h1>')
Awesome 处,替换成中文无法通过。
那是byte不是str,你要把含中文的str编码成byte
Sign in to make a reply
Dominias
Awesome 处,替换成中文无法通过。