@@ -1698,6 +1698,11 @@ msgid ""
16981698"... yield 2\n"
16991699"... yield 3"
17001700msgstr ""
1701+ ">>> def count_to_three():\n"
1702+ "... yield 0\n"
1703+ "... yield 1\n"
1704+ "... yield 2\n"
1705+ "... yield 3"
17011706
17021707#: ../../builtins/stdtypes.rst:985
17031708msgid ""
@@ -1712,6 +1717,8 @@ msgid ""
17121717">>> count_to_three()\n"
17131718"<generator object count_to_three at 0x7f33a2305000>"
17141719msgstr ""
1720+ ">>> count_to_three()\n"
1721+ "<generator object count_to_three at 0x7f33a2305000>"
17151722
17161723#: ../../builtins/stdtypes.rst:993
17171724msgid ""
@@ -1731,6 +1738,15 @@ msgid ""
17311738">>> list(count_to_three())\n"
17321739"[0, 1, 2, 3]"
17331740msgstr ""
1741+ ">>> for number in count_to_three():\n"
1742+ "... print(number)\n"
1743+ "0\n"
1744+ "1\n"
1745+ "2\n"
1746+ "3\n"
1747+ "\n"
1748+ ">>> list(count_to_three())\n"
1749+ "[0, 1, 2, 3]"
17341750
17351751#: ../../builtins/stdtypes.rst:1006
17361752msgid ""
@@ -1748,6 +1764,13 @@ msgid ""
17481764">>> list(CardDeck())\n"
17491765"['three of clubs', 'ace of hearts']"
17501766msgstr ""
1767+ ">>> class CardDeck:\n"
1768+ "... def __iter__(self):\n"
1769+ "... yield 'three of clubs'\n"
1770+ "... yield 'ace of hearts'\n"
1771+ "\n"
1772+ ">>> list(CardDeck())\n"
1773+ "['three of clubs', 'ace of hearts']"
17511774
17521775#: ../../builtins/stdtypes.rst:1023
17531776#, fuzzy
@@ -8696,39 +8719,32 @@ msgid ":class:`!dict` has more methods than :class:`!frozendict`:"
86968719msgstr ""
86978720
86988721#: ../../builtins/stdtypes.rst:6030
8699- #, fuzzy
87008722msgid ":meth:`!__delitem__`"
8701- msgstr ":meth:`bytes.split `"
8723+ msgstr ":meth:`!__delitem__ `"
87028724
87038725#: ../../builtins/stdtypes.rst:6031
8704- #, fuzzy
87058726msgid ":meth:`!__setitem__`"
8706- msgstr ":meth:`str.title `"
8727+ msgstr ":meth:`!__setitem__ `"
87078728
87088729#: ../../builtins/stdtypes.rst:6032
8709- #, fuzzy
87108730msgid ":meth:`~dict.clear`"
8711- msgstr ":meth:`str.lower `"
8731+ msgstr ":meth:`~dict.clear `"
87128732
87138733#: ../../builtins/stdtypes.rst:6033
8714- #, fuzzy
87158734msgid ":meth:`~dict.pop`"
8716- msgstr ":meth:`str.upper `"
8735+ msgstr ":meth:`~dict.pop `"
87178736
87188737#: ../../builtins/stdtypes.rst:6034
8719- #, fuzzy
87208738msgid ":meth:`~dict.popitem`"
8721- msgstr ":meth:`str.split `"
8739+ msgstr ":meth:`~dict.popitem `"
87228740
87238741#: ../../builtins/stdtypes.rst:6035
8724- #, fuzzy
87258742msgid ":meth:`~dict.setdefault`"
8726- msgstr ":meth:`str.isdecimal `"
8743+ msgstr ":meth:`~dict.setdefault `"
87278744
87288745#: ../../builtins/stdtypes.rst:6036
8729- #, fuzzy
87308746msgid ":meth:`~dict.update`"
8731- msgstr ":meth:`str.upper `"
8747+ msgstr ":meth:`~dict.update `"
87328748
87338749#: ../../builtins/stdtypes.rst:6038
87348750msgid ""
@@ -9220,9 +9236,8 @@ msgid ":class:`set`"
92209236msgstr ":class:`set`"
92219237
92229238#: ../../builtins/stdtypes.rst:6293
9223- #, fuzzy
92249239msgid ":class:`frozendict`"
9225- msgstr ":class:`frozenset `"
9240+ msgstr ":class:`frozendict `"
92269241
92279242#: ../../builtins/stdtypes.rst:6294
92289243msgid ":class:`frozenset`"
@@ -10799,34 +10814,29 @@ msgid "iteration over"
1079910814msgstr "iteration over(疊代於)"
1080010815
1080110816#: ../../builtins/stdtypes.rst:1019
10802- #, fuzzy
1080310817msgid "generator"
10804- msgstr "operator(運算子 )"
10818+ msgstr "generator(產生器 )"
1080510819
1080610820#: ../../builtins/stdtypes.rst:1029 ../../builtins/stdtypes.rst:1098
1080710821#: ../../builtins/stdtypes.rst:1139 ../../builtins/stdtypes.rst:1216
10808- #, fuzzy
1080910822msgid "exception"
10810- msgstr "描述 "
10823+ msgstr "exception(例外) "
1081110824
1081210825#: ../../builtins/stdtypes.rst:1029
10813- #, fuzzy
1081410826msgid "StopIteration"
10815- msgstr "operation(操作) "
10827+ msgstr "StopIteration "
1081610828
1081710829#: ../../builtins/stdtypes.rst:1098 ../../builtins/stdtypes.rst:1216
10818- #, fuzzy
1081910830msgid "GeneratorExit"
10820- msgstr "Generic(泛型) "
10831+ msgstr "GeneratorExit "
1082110832
1082210833#: ../../builtins/stdtypes.rst:1129
1082310834msgid "asynchronous-generator"
10824- msgstr ""
10835+ msgstr "asynchronous-generator(非同步產生器) "
1082510836
1082610837#: ../../builtins/stdtypes.rst:1139
10827- #, fuzzy
1082810838msgid "StopAsyncIteration"
10829- msgstr "operation(操作) "
10839+ msgstr "StopAsyncIteration "
1083010840
1083110841#: ../../builtins/stdtypes.rst:1276 ../../builtins/stdtypes.rst:5613
1083210842msgid "len"
0 commit comments