From 23055bc757d6aecdb74aa53b4d6c835bec4a3e67 Mon Sep 17 00:00:00 2001 From: sdygt Date: Sun, 7 May 2017 20:23:27 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20typo=20"=E4=B8=80=E7=82=B9"=20-->=20"?= =?UTF-8?q?=E4=B8=80=E5=AE=9A"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/c11/p05_creating_simple_rest_based_interface.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/c11/p05_creating_simple_rest_based_interface.rst b/source/c11/p05_creating_simple_rest_based_interface.rst index 48e50e6..a3985ee 100644 --- a/source/c11/p05_creating_simple_rest_based_interface.rst +++ b/source/c11/p05_creating_simple_rest_based_interface.rst @@ -192,7 +192,7 @@ WSGI被标准库支持,同时也被绝大部分第三方web框架支持。 yield b'Goodbye!\n' 这里要强调的一点是最后返回的必须是字节字符串。如果返回结果包含文本字符串,必须先将其编码成字节。 -当然,并没有要求你返回的一点是文本,你可以很轻松的编写一个生成图片的程序。 +当然,并没有要求你返回的一定是文本,你可以很轻松的编写一个生成图片的程序。 尽管WSGI程序通常被定义成一个函数,不过你也可以使用类实例来实现,只要它实现了合适的 ``__call__()`` 方法。例如: