@@ -10,7 +10,7 @@ msgstr ""
10
10
"Project-Id-Version : Python 3.10\n "
11
11
"Report-Msgid-Bugs-To : \n "
12
12
"POT-Creation-Date : 2021-10-26 16:47+0000\n "
13
- "PO-Revision-Date : 2022-01-23 14:36 +0800\n "
13
+ "PO-Revision-Date : 2022-01-27 13:40 +0800\n "
14
14
"
Last-Translator :
Phil Lin <[email protected] >\n "
15
15
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
16
16
"tw)\n "
@@ -23,7 +23,7 @@ msgstr ""
23
23
24
24
#: ../../library/urllib.robotparser.rst:2
25
25
msgid ":mod:`urllib.robotparser` --- Parser for robots.txt"
26
- msgstr ":mod:`urllib.robotparser` --- robots.txt 的解析器 "
26
+ msgstr ":mod:`urllib.robotparser` --- robots.txt 的剖析器 "
27
27
28
28
#: ../../library/urllib.robotparser.rst:10
29
29
msgid "**Source code:** :source:`Lib/urllib/robotparser.py`"
@@ -37,17 +37,17 @@ msgid ""
37
37
"on the structure of :file:`robots.txt` files, see http://www.robotstxt.org/"
38
38
"orig.html."
39
39
msgstr ""
40
- "此模組提供了一個單獨的類別 :class:`RobotFileParser`, 它可以知道某個特定 user "
41
- "agent (使用者代理)是否能在有發布 :file:`robots.txt` 文件的網站 fetch(擷 "
42
- "取)此網站特定的 URL。有關 :file:`robots.txt` 文件結構的更多細節,請參閱 "
43
- "http://www.robotstxt.org/orig.html 。"
40
+ "此模組 (module) 提供了一個單獨的類別 (class) \\ :class:`RobotFileParser`\\ , "
41
+ "它可以知道某個特定 user agent (使用者代理)是否能在有發布 :file:`robots.txt` "
42
+ "文件的網站 fetch(擷取)特定 URL。有關 :file:`robots.txt` 文件結構的更多細 "
43
+ "節,請參閱 http://www.robotstxt.org/orig.html。"
44
44
45
45
#: ../../library/urllib.robotparser.rst:28
46
46
msgid ""
47
47
"This class provides methods to read, parse and answer questions about the :"
48
48
"file:`robots.txt` file at *url*."
49
49
msgstr ""
50
- "此類別提供了一些方法可以讀取、解析和回答關於 *url* 上的 :file:`robots.txt` 文"
50
+ "此類別提供了一些方法可以讀取、剖析和回答關於 *url* 上的 :file:`robots.txt` 文"
51
51
"件的問題。"
52
52
53
53
#: ../../library/urllib.robotparser.rst:33
@@ -56,19 +56,19 @@ msgstr "設置指向 :file:`robots.txt` 文件的 URL。"
56
56
57
57
#: ../../library/urllib.robotparser.rst:37
58
58
msgid "Reads the :file:`robots.txt` URL and feeds it to the parser."
59
- msgstr "讀取 :file:`robots.txt` URL 並將其輸入到解析器 。"
59
+ msgstr "讀取 :file:`robots.txt` URL 並將其輸入到剖析器 。"
60
60
61
61
#: ../../library/urllib.robotparser.rst:41
62
62
msgid "Parses the lines argument."
63
- msgstr "解析行參數(此參數為 ``robots.txt`` 文件裡的行) 。"
63
+ msgstr "剖析 lines 引數 。"
64
64
65
65
#: ../../library/urllib.robotparser.rst:45
66
66
msgid ""
67
67
"Returns ``True`` if the *useragent* is allowed to fetch the *url* according "
68
68
"to the rules contained in the parsed :file:`robots.txt` file."
69
69
msgstr ""
70
- "如果根據被解析的 :file:`robots.txt` 文件中的規則, *useragent* 被允許 fetch "
71
- "*url* 的話,則返回 ``True``。"
70
+ "根據從 :file:`robots.txt` 文件中剖析出的規則,如果 *useragent* 被允許 fetch "
71
+ "*url* 的話,則回傳 ``True``。"
72
72
73
73
#: ../../library/urllib.robotparser.rst:51
74
74
msgid ""
@@ -82,7 +82,7 @@ msgstr ""
82
82
#: ../../library/urllib.robotparser.rst:57
83
83
msgid ""
84
84
"Sets the time the ``robots.txt`` file was last fetched to the current time."
85
- msgstr "將最後一次獲取 ``robots.txt`` 文件的時間設置為當前時間。"
85
+ msgstr "將最近一次 fetch ``robots.txt`` 文件的時間設置為當前時間。"
86
86
87
87
#: ../../library/urllib.robotparser.rst:62
88
88
msgid ""
@@ -92,8 +92,8 @@ msgid ""
92
92
"parameter has invalid syntax, return ``None``."
93
93
msgstr ""
94
94
"針對指定的 *useragent* 從 ``robots.txt`` 返回 ``Crawl-delay`` 參數的值。如果"
95
- "此參數不存在或不適用於指定的 *useragent* ,或是此參數在 ``robots.txt`` 存在語 "
96
- "法錯誤,則返回 ``None``。"
95
+ "此參數不存在、不適用於指定的 *useragent* ,或是此參數在 ``robots.txt`` 中所指 "
96
+ "的條目含有無效語法,則回傳 ``None``。"
97
97
98
98
#: ../../library/urllib.robotparser.rst:71
99
99
msgid ""
@@ -103,8 +103,9 @@ msgid ""
103
103
"``robots.txt`` entry for this parameter has invalid syntax, return ``None``."
104
104
msgstr ""
105
105
"以 :term:`named tuple` ``RequestRate(requests, seconds)`` 的形式從 ``robots."
106
- "txt`` 返回 ``Request-rate`` 參數的內容。如果此參數不存在或不適用於指定的 "
107
- "*useragent* ,或是此參數在 ``robots.txt`` 存在語法錯誤,則返回 ``None``。"
106
+ "txt`` 返回 ``Request-rate`` 參數的內容。如果此參數不存在、不適用於指定的 "
107
+ "*useragent* ,或是此參數在 ``robots.txt`` 中所指的條目含有無效語法,則回傳 "
108
+ "``None``。"
108
109
109
110
#: ../../library/urllib.robotparser.rst:81
110
111
msgid ""
@@ -113,10 +114,13 @@ msgid ""
113
114
"entry for this parameter has invalid syntax, return ``None``."
114
115
msgstr ""
115
116
"以 :func:`list` 的形式從 ``robots.txt`` 返回 ``Sitemap`` 參數的內容。如果此參"
116
- "數不存在或此參數在 ``robots.txt`` 存在語法錯誤,則返回 ``None``。"
117
+ "數不存在或此參數在 ``robots.txt`` 中所指的條目含有無效語法,則回傳 ``None``。"
117
118
118
119
#: ../../library/urllib.robotparser.rst:89
119
120
msgid ""
120
121
"The following example demonstrates basic use of the :class:`RobotFileParser` "
121
122
"class::"
122
- msgstr "下面的範例展示了 :class:`RobotFileParser` 類別的基本用法::"
123
+ msgstr ""
124
+ "下面的範例展示了 :class:`RobotFileParser` 類別的基本用法:\n"
125
+ "\n"
126
+ "::"
0 commit comments