Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0a6029b

Browse files
[po] auto sync
1 parent b4b4718 commit 0a6029b

3 files changed

Lines changed: 22 additions & 17 deletions

File tree

howto/urllib2.po

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111
# 钢 彭 <[email protected]>, 2019
1212
# 汪心禾 <[email protected]>, 2019
1313
# Yi Cao <[email protected]>, 2019
14-
# Freesand Leo <[email protected]>, 2020
15-
# Dai Xu <[email protected]>, 2021
1614
# Jiuh-star <[email protected]>, 2021
15+
# Dai Xu <[email protected]>, 2021
1716
#
1817
#, fuzzy
1918
msgid ""
@@ -22,7 +21,7 @@ msgstr ""
2221
"Report-Msgid-Bugs-To: \n"
2322
"POT-Creation-Date: 2021-02-06 05:23+0000\n"
2423
"PO-Revision-Date: 2017-02-16 17:46+0000\n"
25-
"Last-Translator: Jiuh-star <jiuh.star@gmail.com>, 2021\n"
24+
"Last-Translator: Dai Xu <daixu61@hotmail.com>, 2021\n"
2625
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2726
"MIME-Version: 1.0\n"
2827
"Content-Type: text/plain; charset=UTF-8\n"
@@ -129,8 +128,8 @@ msgid ""
129128
"location, you can do so via the :func:`shutil.copyfileobj` and "
130129
":func:`tempfile.NamedTemporaryFile` functions::"
131130
msgstr ""
132-
"如果你想通过 URL 获取资源并保存某个临时的地方,你可以通过 :func:`shutil.copyfileobj` 和 "
133-
":func:`tempfile.NamedTemporaryFile` 函数::"
131+
"如果想通过 URL 获取资源并临时存储一下,可以采用 :func:`shutil.copyfileobj` 和 "
132+
":func:`tempfile.NamedTemporaryFile` 函数"
134133

135134
#: ../../howto/urllib2.rst:74
136135
msgid ""
@@ -139,8 +138,8 @@ msgid ""
139138
"it's the purpose of this tutorial to explain the more complicated cases, "
140139
"concentrating on HTTP."
141140
msgstr ""
142-
"urllib很易于使用(注意 URL "
143-
"不仅仅可以以'http:'开头,也可以是'ftp:','file:'等)。但是,这篇教程的目的是介绍更加复杂的用法,大多数以HTTP举例。"
141+
"urllib 的很多用法就是这么简单(注意 URL 不仅可以 http: 开头,还可以是 ftp: 、file: "
142+
"等)。不过本教程的目的是介绍更加复杂的应用场景,重点还是关注 HTTP。"
144143

145144
#: ../../howto/urllib2.rst:79
146145
msgid ""
@@ -152,13 +151,15 @@ msgid ""
152151
"the URL requested. This response is a file-like object, which means you can "
153152
"for example call ``.read()`` on the response::"
154153
msgstr ""
155-
"HTTP基于请求和回应——客户端像服务器请求,服务器回应。urllib.request将你的HTTP请求保存为一个``Request``对象。在最简单的情况下,一个Request对象里包含你所请求的特定URL。以当前的Request对象作为参数调用``urlopen``返回服务器对你正在请求的URL的回应。回应是个文件类对象,所以你可以调用如``.read()``等命令。"
154+
"HTTP 以请求和响应为基础——客户端生成请求,服务器发送响应。urllib.request 用 ``Request`` 对象来表示要生成的 HTTP "
155+
"请求。最简单的形式就是创建一个 Request 对象,指定了想要获取的 URL。用这个 Request 对象作为参数调用``urlopen`` "
156+
",将会返回该 URL 的响应对象。响应对象类似于文件对象,就是说可以对其调用 ``.read()`` 之类的命令:"
156157

157158
#: ../../howto/urllib2.rst:93
158159
msgid ""
159160
"Note that urllib.request makes use of the same Request interface to handle "
160161
"all URL schemes. For example, you can make an FTP request like so::"
161-
msgstr "注意urllib.request中的Request接口也支持处理所有的互联网协议。比如,你可以像这样做一个 FTP 请求:"
162+
msgstr "请注意,urllib.request 用同一个 Request 接口处理所有 URL 方案。比如可生成 FTP 请求如下:"
162163

163164
#: ../../howto/urllib2.rst:98
164165
msgid ""
@@ -168,6 +169,8 @@ msgid ""
168169
"request itself, to the server - this information is sent as HTTP "
169170
"\"headers\". Let's look at each of these in turn."
170171
msgstr ""
172+
"就 HTTP 而言,Request 对象能够做两件额外的事情:首先可以把数据传给服务器。其次,可以将 *有关* "
173+
"数据或请求本身的额外信息(metadata)传给服务器——这些信息将会作为 HTTP “头部”数据发送。下面依次看下。"
171174

172175
#: ../../howto/urllib2.rst:105
173176
msgid "Data"
@@ -185,10 +188,10 @@ msgid ""
185188
"Request object as the ``data`` argument. The encoding is done using a "
186189
"function from the :mod:`urllib.parse` library. ::"
187190
msgstr ""
188-
"有时候你想要给一个 URL 发送数据(通常这个URL指向一个CGI(通用网关接口)脚本或者其他 web 应用)。 对于 HTTP,这通常使用一个 "
189-
"**POST** 请求来完成。 比如在浏览器上提交一个 HTML 表单。 但并不是所有的 POST 都来自表单:你能使用一个 POST "
190-
"来传输任何数据到你自己的应用上。 在使用常见的 HTML 表单的情况下,数据需要以标准的方式编码,然后再作为 ``data`` 参数传给 Request"
191-
" 对象。 编码需要使用一个来自 :mod:`urllib.parse` 库的函数。"
191+
"有时需要向某个 URL 发送数据,通常此 URL 会指向某个CGI(通用网关接口)脚本或其他 web 应用对于 HTTP 而言,这通常会用所谓的 "
192+
"**POST** 请求来完成。当要把 Web 页填写的 HTML 表单提交时,浏览器通常会执行此操作。但并不是所有的 POST 都来自表单:可以用 "
193+
"POST 方式传输任何数据到自己的应用上。对于通常的 HTML 表单,数据需要以标准的方式编码,然后作为 ``data`` 参数传给 Request "
194+
"对象。编码过程是用 :mod:`urllib.parse` 库的函数完成的:"
192195

193196
#: ../../howto/urllib2.rst:131
194197
msgid ""
@@ -209,10 +212,14 @@ msgid ""
209212
"side-effects, nor a POST requests from having no side-effects. Data can also"
210213
" be passed in an HTTP GET request by encoding it in the URL itself."
211214
msgstr ""
215+
"如果不传递 ``data`` 参数,urllib 将采用 **GET** 请求。GET 和 POST 请求有一点不同,POST "
216+
"请求往往具有“副作用”,他们会以某种方式改变系统的状态。例如,从网站下一个订单,购买一大堆罐装垃圾并运送到家。 尽管 HTTP 标准明确指出 POST "
217+
"*总是* 要导致副作用,而 GET 请求 *从来不会* 导致副作用。但没有什么办法能阻止 GET 和 POST 请求的副作用。数据也可以在 HTTP "
218+
"GET 请求中传递,只要把数据编码到 URL 中即可。 "
212219

213220
#: ../../howto/urllib2.rst:146
214221
msgid "This is done as follows::"
215-
msgstr "具体操作如下::"
222+
msgstr "做法如下所示:"
216223

217224
#: ../../howto/urllib2.rst:161
218225
msgid ""

library/ctypes.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Zombie110year <[email protected]>, 2019
1111
# ppcfish <[email protected]>, 2019
1212
# ruoyu zhang <[email protected]>, 2019
13-
# kks uch <[email protected]>, 2020
13+
# Uchiha Kakashi <[email protected]>, 2020
1414
# zeroswan <[email protected]>, 2020
1515
# Freesand Leo <[email protected]>, 2020
1616
#

whatsnew/changelog.po

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ msgid ""
7575
"avoids infinitely reading potential HTTP headers after a ``100 Continue`` "
7676
"status response from the server."
7777
msgstr ""
78-
"`bpo-44022 <https://bugs.python.org/issue44022>`__ :现在如果服务器返回了 ``100 "
79-
"Continue`` 应答状态, :mod:`http.client` 就不会再持续不停地尝试读取 HTTP 头部信息了。"
8078

8179
#: ../../../build/NEWS:16 ../../../build/NEWS:163 ../../../build/NEWS:326
8280
#: ../../../build/NEWS:369 ../../../build/NEWS:520 ../../../build/NEWS:811

0 commit comments

Comments
 (0)