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

Skip to content

Commit a14ed0c

Browse files
sync with cpython 8785eab3
1 parent bfd804a commit a14ed0c

File tree

4 files changed

+359
-341
lines changed

4 files changed

+359
-341
lines changed

library/http.server.po

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: Python 3.12\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2024-01-24 00:03+0000\n"
9+
"POT-Creation-Date: 2024-03-05 00:03+0000\n"
1010
"PO-Revision-Date: 2018-05-23 16:03+0000\n"
1111
"Last-Translator: Adrian Liaw <[email protected]>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -619,18 +619,25 @@ msgid ""
619619
"the ``--cgi`` option::"
620620
msgstr ""
621621

622-
#: ../../library/http.server.rst:513
622+
#: ../../library/http.server.rst:512
623+
msgid ""
624+
":class:`CGIHTTPRequestHandler` and the ``--cgi`` command line option are not "
625+
"intended for use by untrusted clients and may be vulnerable to exploitation. "
626+
"Always use within a secure environment."
627+
msgstr ""
628+
629+
#: ../../library/http.server.rst:519
623630
msgid "Security Considerations"
624631
msgstr ""
625632

626-
#: ../../library/http.server.rst:517
633+
#: ../../library/http.server.rst:523
627634
msgid ""
628635
":class:`SimpleHTTPRequestHandler` will follow symbolic links when handling "
629636
"requests, this makes it possible for files outside of the specified "
630637
"directory to be served."
631638
msgstr ""
632639

633-
#: ../../library/http.server.rst:521
640+
#: ../../library/http.server.rst:527
634641
msgid ""
635642
"Earlier versions of Python did not scrub control characters from the log "
636643
"messages emitted to stderr from ``python -m http.server`` or the default :"
@@ -639,7 +646,7 @@ msgid ""
639646
"codes to your terminal."
640647
msgstr ""
641648

642-
#: ../../library/http.server.rst:527
649+
#: ../../library/http.server.rst:533
643650
msgid "Control characters are scrubbed in stderr logs."
644651
msgstr ""
645652

@@ -667,10 +674,10 @@ msgstr "URL(統一資源定位器)"
667674
msgid "httpd"
668675
msgstr "httpd"
669676

670-
#: ../../library/http.server.rst:515
677+
#: ../../library/http.server.rst:521
671678
msgid "http.server"
672679
msgstr "http.server"
673680

674-
#: ../../library/http.server.rst:515
681+
#: ../../library/http.server.rst:521
675682
msgid "security"
676683
msgstr "security(安全)"

library/itertools.po

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2024-03-01 00:03+0000\n"
10+
"POT-Creation-Date: 2024-03-05 00:03+0000\n"
1111
"PO-Revision-Date: 2018-05-23 16:04+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -210,12 +210,14 @@ msgstr ":func:`dropwhile`"
210210

211211
#: ../../library/itertools.rst:59 ../../library/itertools.rst:60
212212
#: ../../library/itertools.rst:65
213-
msgid "pred, seq"
213+
#, fuzzy
214+
msgid "predicate, seq"
214215
msgstr "pred, seq"
215216

216217
#: ../../library/itertools.rst:59
217-
msgid "seq[n], seq[n+1], starting when pred fails"
218-
msgstr ""
218+
#, fuzzy
219+
msgid "seq[n], seq[n+1], starting when predicate fails"
220+
msgstr "seq[0], seq[1], until pred fails"
219221

220222
#: ../../library/itertools.rst:59
221223
msgid "``dropwhile(lambda x: x<5, [1,4,6,4,1]) --> 6 4 1``"
@@ -226,7 +228,7 @@ msgid ":func:`filterfalse`"
226228
msgstr ":func:`filterfalse`"
227229

228230
#: ../../library/itertools.rst:60
229-
msgid "elements of seq where pred(elem) is false"
231+
msgid "elements of seq where predicate(elem) fails"
230232
msgstr ""
231233

232234
#: ../../library/itertools.rst:60
@@ -294,7 +296,8 @@ msgid ":func:`takewhile`"
294296
msgstr ":func:`takewhile`"
295297

296298
#: ../../library/itertools.rst:65
297-
msgid "seq[0], seq[1], until pred fails"
299+
#, fuzzy
300+
msgid "seq[0], seq[1], until predicate fails"
298301
msgstr "seq[0], seq[1], until pred fails"
299302

300303
#: ../../library/itertools.rst:65
@@ -410,7 +413,7 @@ msgid "``AA AB AC AD BB BC BD CC CD DD``"
410413
msgstr "``AA AB AC AD BB BC BD CC CD DD``"
411414

412415
#: ../../library/itertools.rst:94
413-
msgid "Itertool functions"
416+
msgid "Itertool Functions"
414417
msgstr ""
415418

416419
#: ../../library/itertools.rst:96
@@ -896,6 +899,6 @@ msgid ""
896899
"term:`generator`\\s which incur interpreter overhead."
897900
msgstr ""
898901

899-
#: ../../library/itertools.rst:989
902+
#: ../../library/itertools.rst:982
900903
msgid "The following recipes have a more mathematical flavor:"
901904
msgstr ""

tutorial/introduction.po

Lines changed: 36 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgid ""
1010
msgstr ""
1111
"Project-Id-Version: Python 3.12\n"
1212
"Report-Msgid-Bugs-To: \n"
13-
"POT-Creation-Date: 2023-10-22 12:58+0000\n"
13+
"POT-Creation-Date: 2024-03-05 00:03+0000\n"
1414
"PO-Revision-Date: 2022-10-16 03:20+0800\n"
1515
"Last-Translator: Steven Hsu <[email protected]>\n"
1616
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -520,24 +520,13 @@ msgstr ""
520520
"::"
521521

522522
#: ../../tutorial/introduction.rst:408
523-
msgid ""
524-
"All slice operations return a new list containing the requested elements. "
525-
"This means that the following slice returns a :ref:`shallow copy "
526-
"<shallow_vs_deep_copy>` of the list::"
527-
msgstr ""
528-
"所有切片操作都會回傳一個新的 list ,包含要求的元素。這意謂著以下這個切片回傳"
529-
"了原本 list 的 :ref:`淺複製 <shallow_vs_deep_copy>` :\n"
530-
"\n"
531-
"::"
532-
533-
#: ../../tutorial/introduction.rst:415
534523
msgid "Lists also support operations like concatenation::"
535524
msgstr ""
536525
"List 對支援如接合 (concatenation) 等操作:\n"
537526
"\n"
538527
"::"
539528

540-
#: ../../tutorial/introduction.rst:420
529+
#: ../../tutorial/introduction.rst:413
541530
msgid ""
542531
"Unlike strings, which are :term:`immutable`, lists are a :term:`mutable` "
543532
"type, i.e. it is possible to change their content::"
@@ -547,7 +536,7 @@ msgstr ""
547536
"\n"
548537
"::"
549538

550-
#: ../../tutorial/introduction.rst:430
539+
#: ../../tutorial/introduction.rst:423
551540
msgid ""
552541
"You can also add new items at the end of the list, by using the :meth:`!list."
553542
"append` *method* (we will see more about methods later)::"
@@ -557,7 +546,26 @@ msgstr ""
557546
"\n"
558547
"::"
559548

560-
#: ../../tutorial/introduction.rst:438
549+
#: ../../tutorial/introduction.rst:431
550+
msgid ""
551+
"Simple assignment in Python never copies data. When you assign a list to a "
552+
"variable, the variable refers to the *existing list*. Any changes you make "
553+
"to the list through one variable will be seen through all other variables "
554+
"that refer to it.::"
555+
msgstr ""
556+
557+
#: ../../tutorial/introduction.rst:444
558+
msgid ""
559+
"All slice operations return a new list containing the requested elements. "
560+
"This means that the following slice returns a :ref:`shallow copy "
561+
"<shallow_vs_deep_copy>` of the list::"
562+
msgstr ""
563+
"所有切片操作都會回傳一個新的 list ,包含要求的元素。這意謂著以下這個切片回傳"
564+
"了原本 list 的 :ref:`淺複製 <shallow_vs_deep_copy>` :\n"
565+
"\n"
566+
"::"
567+
568+
#: ../../tutorial/introduction.rst:455
561569
msgid ""
562570
"Assignment to slices is also possible, and this can even change the size of "
563571
"the list or clear it entirely::"
@@ -566,14 +574,14 @@ msgstr ""
566574
"\n"
567575
"::"
568576

569-
#: ../../tutorial/introduction.rst:457
577+
#: ../../tutorial/introduction.rst:474
570578
msgid "The built-in function :func:`len` also applies to lists::"
571579
msgstr ""
572580
"內建的函式 :func:`len` 亦可以作用在 list 上:\n"
573581
"\n"
574582
"::"
575583

576-
#: ../../tutorial/introduction.rst:463
584+
#: ../../tutorial/introduction.rst:480
577585
msgid ""
578586
"It is possible to nest lists (create lists containing other lists), for "
579587
"example::"
@@ -582,11 +590,11 @@ msgstr ""
582590
"\n"
583591
"::"
584592

585-
#: ../../tutorial/introduction.rst:479
593+
#: ../../tutorial/introduction.rst:496
586594
msgid "First Steps Towards Programming"
587595
msgstr "初探程式設計的前幾步"
588596

589-
#: ../../tutorial/introduction.rst:481
597+
#: ../../tutorial/introduction.rst:498
590598
msgid ""
591599
"Of course, we can use Python for more complicated tasks than adding two and "
592600
"two together. For instance, we can write an initial sub-sequence of the "
@@ -599,11 +607,11 @@ msgstr ""
599607
"\n"
600608
"::"
601609

602-
#: ../../tutorial/introduction.rst:501
610+
#: ../../tutorial/introduction.rst:518
603611
msgid "This example introduces several new features."
604612
msgstr "這例子引入了許多新的特性。"
605613

606-
#: ../../tutorial/introduction.rst:503
614+
#: ../../tutorial/introduction.rst:520
607615
msgid ""
608616
"The first line contains a *multiple assignment*: the variables ``a`` and "
609617
"``b`` simultaneously get the new values 0 and 1. On the last line this is "
@@ -615,7 +623,7 @@ msgstr ""
615623
"同樣的賦值再被使用了一次,示範了等號的右項運算 (expression) 會先被計算 "
616624
"(evaluate),賦值再發生。右項的運算式由左至右依序被計算。"
617625

618-
#: ../../tutorial/introduction.rst:509
626+
#: ../../tutorial/introduction.rst:526
619627
msgid ""
620628
"The :keyword:`while` loop executes as long as the condition (here: ``a < "
621629
"10``) remains true. In Python, like in C, any non-zero integer value is "
@@ -633,7 +641,7 @@ msgstr ""
633641
"使用如同 C 語言一樣的符號:``<``\\ (小於)、``>``\\ (大於)、``==``\\ (等"
634642
"於)、``<=``\\ (小於等於)、``>=``\\ (大於等於)以及 ``!=``\\ (不等於)。"
635643

636-
#: ../../tutorial/introduction.rst:518
644+
#: ../../tutorial/introduction.rst:535
637645
msgid ""
638646
"The *body* of the loop is *indented*: indentation is Python's way of "
639647
"grouping statements. At the interactive prompt, you have to type a tab or "
@@ -651,7 +659,7 @@ msgstr ""
651659
"法剖析器無法判斷你何時輸入複合陳述的最後一行)。注意在一個縮排段落內的縮排方"
652660
"式與數量必須維持一致。"
653661

654-
#: ../../tutorial/introduction.rst:527
662+
#: ../../tutorial/introduction.rst:544
655663
msgid ""
656664
"The :func:`print` function writes the value of the argument(s) it is given. "
657665
"It differs from just writing the expression you want to write (as we did "
@@ -667,7 +675,7 @@ msgstr ""
667675
"\n"
668676
"::"
669677

670-
#: ../../tutorial/introduction.rst:538
678+
#: ../../tutorial/introduction.rst:555
671679
msgid ""
672680
"The keyword argument *end* can be used to avoid the newline after the "
673681
"output, or end the output with a different string::"
@@ -677,11 +685,11 @@ msgstr ""
677685
"\n"
678686
"::"
679687

680-
#: ../../tutorial/introduction.rst:550
688+
#: ../../tutorial/introduction.rst:567
681689
msgid "Footnotes"
682690
msgstr "註解"
683691

684-
#: ../../tutorial/introduction.rst:551
692+
#: ../../tutorial/introduction.rst:568
685693
msgid ""
686694
"Since ``**`` has higher precedence than ``-``, ``-3**2`` will be interpreted "
687695
"as ``-(3**2)`` and thus result in ``-9``. To avoid this and get ``9``, you "
@@ -690,7 +698,7 @@ msgstr ""
690698
"因為 ``**`` 擁有較 ``-`` 高的優先次序,``-3**2`` 會被解釋為 ``-(3**2)`` 並得"
691699
"到 ``-9``。如果要避免這樣的優先順序以得到 ``9``,你可以使用 ``(-3)**2``。"
692700

693-
#: ../../tutorial/introduction.rst:555
701+
#: ../../tutorial/introduction.rst:572
694702
msgid ""
695703
"Unlike other languages, special characters such as ``\\n`` have the same "
696704
"meaning with both single (``'...'``) and double (``\"...\"``) quotes. The "

0 commit comments

Comments
 (0)