Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite167727

Browse files
committed
Translate faq/design.html#why-are-python-strings-immutable
1 parent87cb8f0 commite167727

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎faq/design.po‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgstr ""
99
"Project-Id-Version:Python 3.10\n"
1010
"Report-Msgid-Bugs-To:\n"
1111
"POT-Creation-Date:2022-07-06 00:17+0000\n"
12-
"PO-Revision-Date:2022-08-1420:54+0800\n"
12+
"PO-Revision-Date:2022-08-1422:46+0800\n"
1313
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1414
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1515
"tw)\n"
@@ -178,7 +178,7 @@ msgstr ""
178178

179179
#:../../faq/design.rst:95
180180
msgid"Why are Python strings immutable?"
181-
msgstr"為何Python字串為不可變動"
181+
msgstr"為什麼 Python 字符串不可變動?"
182182

183183
#:../../faq/design.rst:97
184184
msgid"There are several advantages."
@@ -191,6 +191,9 @@ msgid ""
191191
"unchanging. This is also one of the reasons for the distinction between "
192192
"tuples and lists."
193193
msgstr""
194+
"其一是效能:知道字串不可變動後,我們就可以在創造他的時候就分配好空間,而後他"
195+
"的儲存空間需求就是固定不變的。這也是值組 (tuples) 和列表 (lists) 相異的其中一"
196+
"個原因。"
194197

195198
#:../../faq/design.rst:104
196199
msgid""
@@ -199,6 +202,8 @@ msgid ""
199202
"and in Python, no amount of activity will change the string\"eight\" to "
200203
"anything else."
201204
msgstr""
205+
"另一個優點是在 python 中,字串和數字一樣「基本」。沒有任何行為會把 8 這個數值"
206+
"改成其他數值;同理,在 Python 中也沒有任何行為會修改字串「eight」。"
202207

203208
#:../../faq/design.rst:112
204209
msgid"Why must 'self' be used explicitly in method definitions and calls?"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp