@@ -729,45 +729,52 @@ msgid ""
729
729
"to the position indicated by *whence*, and return the new absolute position. "
730
730
"Values for *whence* are:"
731
731
msgstr ""
732
+ "將串流位置改變到給定的位元組 *offset*,此位置是相對於由 *whence* 指示的位置解"
733
+ "釋的,並回傳新的絕對位置。*whence* 的值可為:"
732
734
733
735
#: ../../library/io.rst:413
734
736
msgid ""
735
737
":data:`os.SEEK_SET` or ``0`` -- start of the stream (the default); *offset* "
736
738
"should be zero or positive"
737
739
msgstr ""
740
+ ":data:`os.SEEK_SET` 或 ``0`` -- 串流的起點(預設值);*offset* 應為零或正數"
738
741
739
742
#: ../../library/io.rst:415
740
743
msgid ""
741
744
":data:`os.SEEK_CUR` or ``1`` -- current stream position; *offset* may be "
742
745
"negative"
743
- msgstr ""
746
+ msgstr ":data:`os.SEEK_CUR` 或 ``1`` -- 目前串流位置;*offset* 可以是負數 "
744
747
745
748
#: ../../library/io.rst:417
746
749
msgid ""
747
750
":data:`os.SEEK_END` or ``2`` -- end of the stream; *offset* is usually "
748
751
"negative"
749
- msgstr ""
752
+ msgstr ":data:`os.SEEK_END` 或 ``2`` -- 串流的結尾;*offset* 通常是負數 "
750
753
751
754
#: ../../library/io.rst:420 ../../library/io.rst:930
752
755
msgid "The :data:`!SEEK_*` constants."
753
- msgstr ""
756
+ msgstr ":data:`!SEEK_*` 常數。 "
754
757
755
758
#: ../../library/io.rst:423
756
759
msgid ""
757
760
"Some operating systems could support additional values, like :const:`os."
758
761
"SEEK_HOLE` or :const:`os.SEEK_DATA`. The valid values for a file could "
759
762
"depend on it being open in text or binary mode."
760
763
msgstr ""
764
+ "某些作業系統可以支援額外的值,例如 :const:`os.SEEK_HOLE` 或 :const:`os."
765
+ "SEEK_DATA`。檔案的合法值取決於它是以文字模式還是二進位模式開啟。"
761
766
762
767
#: ../../library/io.rst:430
763
768
msgid ""
764
769
"Return ``True`` if the stream supports random access. If ``False``, :meth:"
765
770
"`seek`, :meth:`tell` and :meth:`truncate` will raise :exc:`OSError`."
766
771
msgstr ""
772
+ "如果串流支援隨機存取,則回傳 ``True``。如果是 ``False``,則 :meth:`seek`、:"
773
+ "meth:`tell` 和 :meth:`truncate` 會引發 :exc:`OSError`。"
767
774
768
775
#: ../../library/io.rst:435
769
776
msgid "Return the current stream position."
770
- msgstr ""
777
+ msgstr "回傳目前串流的位置。 "
771
778
772
779
#: ../../library/io.rst:439
773
780
msgid ""
@@ -777,10 +784,14 @@ msgid ""
777
784
"the contents of the new file area depend on the platform (on most systems, "
778
785
"additional bytes are zero-filled). The new file size is returned."
779
786
msgstr ""
787
+ "將串流的大小調整為指定的 *size* 位元組(如果沒有指定 *size*,則調整為目前位"
788
+ "置)。目前串流位置不會改變。這種調整可以擴展或縮減當前檔案大小。在擴展的情況"
789
+ "下,新檔案區域的內容取決於平台(在大多數系統上,額外的位元組會被填充為零)。"
790
+ "回傳新的檔案大小。"
780
791
781
792
#: ../../library/io.rst:446
782
793
msgid "Windows will now zero-fill files when extending."
783
- msgstr ""
794
+ msgstr "Windows 現在在擴展時會對檔案進行零填充 (zero-fill)。 "
784
795
785
796
#: ../../library/io.rst:451
786
797
msgid ""
0 commit comments