@@ -10,7 +10,7 @@ msgid ""
10
10
msgstr ""
11
11
"Project-Id-Version : Python 3.12\n "
12
12
"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 "
14
14
"PO-Revision-Date : 2022-10-16 03:20+0800\n "
15
15
"
Last-Translator :
Steven Hsu <[email protected] >\n "
16
16
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -520,24 +520,13 @@ msgstr ""
520
520
"::"
521
521
522
522
#: ../../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
534
523
msgid "Lists also support operations like concatenation::"
535
524
msgstr ""
536
525
"List 對支援如接合 (concatenation) 等操作:\n"
537
526
"\n"
538
527
"::"
539
528
540
- #: ../../tutorial/introduction.rst:420
529
+ #: ../../tutorial/introduction.rst:413
541
530
msgid ""
542
531
"Unlike strings, which are :term:`immutable`, lists are a :term:`mutable` "
543
532
"type, i.e. it is possible to change their content::"
@@ -547,7 +536,7 @@ msgstr ""
547
536
"\n"
548
537
"::"
549
538
550
- #: ../../tutorial/introduction.rst:430
539
+ #: ../../tutorial/introduction.rst:423
551
540
msgid ""
552
541
"You can also add new items at the end of the list, by using the :meth:`!list."
553
542
"append` *method* (we will see more about methods later)::"
@@ -557,7 +546,26 @@ msgstr ""
557
546
"\n"
558
547
"::"
559
548
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
561
569
msgid ""
562
570
"Assignment to slices is also possible, and this can even change the size of "
563
571
"the list or clear it entirely::"
@@ -566,14 +574,14 @@ msgstr ""
566
574
"\n"
567
575
"::"
568
576
569
- #: ../../tutorial/introduction.rst:457
577
+ #: ../../tutorial/introduction.rst:474
570
578
msgid "The built-in function :func:`len` also applies to lists::"
571
579
msgstr ""
572
580
"內建的函式 :func:`len` 亦可以作用在 list 上:\n"
573
581
"\n"
574
582
"::"
575
583
576
- #: ../../tutorial/introduction.rst:463
584
+ #: ../../tutorial/introduction.rst:480
577
585
msgid ""
578
586
"It is possible to nest lists (create lists containing other lists), for "
579
587
"example::"
@@ -582,11 +590,11 @@ msgstr ""
582
590
"\n"
583
591
"::"
584
592
585
- #: ../../tutorial/introduction.rst:479
593
+ #: ../../tutorial/introduction.rst:496
586
594
msgid "First Steps Towards Programming"
587
595
msgstr "初探程式設計的前幾步"
588
596
589
- #: ../../tutorial/introduction.rst:481
597
+ #: ../../tutorial/introduction.rst:498
590
598
msgid ""
591
599
"Of course, we can use Python for more complicated tasks than adding two and "
592
600
"two together. For instance, we can write an initial sub-sequence of the "
@@ -599,11 +607,11 @@ msgstr ""
599
607
"\n"
600
608
"::"
601
609
602
- #: ../../tutorial/introduction.rst:501
610
+ #: ../../tutorial/introduction.rst:518
603
611
msgid "This example introduces several new features."
604
612
msgstr "這例子引入了許多新的特性。"
605
613
606
- #: ../../tutorial/introduction.rst:503
614
+ #: ../../tutorial/introduction.rst:520
607
615
msgid ""
608
616
"The first line contains a *multiple assignment*: the variables ``a`` and "
609
617
"``b`` simultaneously get the new values 0 and 1. On the last line this is "
@@ -615,7 +623,7 @@ msgstr ""
615
623
"同樣的賦值再被使用了一次,示範了等號的右項運算 (expression) 會先被計算 "
616
624
"(evaluate),賦值再發生。右項的運算式由左至右依序被計算。"
617
625
618
- #: ../../tutorial/introduction.rst:509
626
+ #: ../../tutorial/introduction.rst:526
619
627
msgid ""
620
628
"The :keyword:`while` loop executes as long as the condition (here: ``a < "
621
629
"10``) remains true. In Python, like in C, any non-zero integer value is "
@@ -633,7 +641,7 @@ msgstr ""
633
641
"使用如同 C 語言一樣的符號:``<``\\ (小於)、``>``\\ (大於)、``==``\\ (等"
634
642
"於)、``<=``\\ (小於等於)、``>=``\\ (大於等於)以及 ``!=``\\ (不等於)。"
635
643
636
- #: ../../tutorial/introduction.rst:518
644
+ #: ../../tutorial/introduction.rst:535
637
645
msgid ""
638
646
"The *body* of the loop is *indented*: indentation is Python's way of "
639
647
"grouping statements. At the interactive prompt, you have to type a tab or "
@@ -651,7 +659,7 @@ msgstr ""
651
659
"法剖析器無法判斷你何時輸入複合陳述的最後一行)。注意在一個縮排段落內的縮排方"
652
660
"式與數量必須維持一致。"
653
661
654
- #: ../../tutorial/introduction.rst:527
662
+ #: ../../tutorial/introduction.rst:544
655
663
msgid ""
656
664
"The :func:`print` function writes the value of the argument(s) it is given. "
657
665
"It differs from just writing the expression you want to write (as we did "
@@ -667,7 +675,7 @@ msgstr ""
667
675
"\n"
668
676
"::"
669
677
670
- #: ../../tutorial/introduction.rst:538
678
+ #: ../../tutorial/introduction.rst:555
671
679
msgid ""
672
680
"The keyword argument *end* can be used to avoid the newline after the "
673
681
"output, or end the output with a different string::"
@@ -677,11 +685,11 @@ msgstr ""
677
685
"\n"
678
686
"::"
679
687
680
- #: ../../tutorial/introduction.rst:550
688
+ #: ../../tutorial/introduction.rst:567
681
689
msgid "Footnotes"
682
690
msgstr "註解"
683
691
684
- #: ../../tutorial/introduction.rst:551
692
+ #: ../../tutorial/introduction.rst:568
685
693
msgid ""
686
694
"Since ``**`` has higher precedence than ``-``, ``-3**2`` will be interpreted "
687
695
"as ``-(3**2)`` and thus result in ``-9``. To avoid this and get ``9``, you "
@@ -690,7 +698,7 @@ msgstr ""
690
698
"因為 ``**`` 擁有較 ``-`` 高的優先次序,``-3**2`` 會被解釋為 ``-(3**2)`` 並得"
691
699
"到 ``-9``。如果要避免這樣的優先順序以得到 ``9``,你可以使用 ``(-3)**2``。"
692
700
693
- #: ../../tutorial/introduction.rst:555
701
+ #: ../../tutorial/introduction.rst:572
694
702
msgid ""
695
703
"Unlike other languages, special characters such as ``\\ n`` have the same "
696
704
"meaning with both single (``'...'``) and double (``\" ...\" ``) quotes. The "
0 commit comments