Skip to content

Commit 86eecf1

Browse files
committed
Translate faq/design.html#why-can-t-raw-strings-r-strings-end-with-a-backslash
1 parent 769b665 commit 86eecf1

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

faq/design.po

+13-1
Original file line numberDiff line numberDiff line change
@@ -1085,14 +1085,16 @@ msgstr "這依然不能讓你跳進迴圈內,這通常被認為是對 goto 的
10851085

10861086
#: ../../faq/design.rst:627
10871087
msgid "Why can't raw strings (r-strings) end with a backslash?"
1088-
msgstr ""
1088+
msgstr "為何純字串 (r-string) 不能以反斜線結尾?"
10891089

10901090
#: ../../faq/design.rst:629
10911091
msgid ""
10921092
"More precisely, they can't end with an odd number of backslashes: the "
10931093
"unpaired backslash at the end escapes the closing quote character, leaving "
10941094
"an unterminated string."
10951095
msgstr ""
1096+
"更精確地來說,他不能以奇數個反斜線結尾:尾端未配對的反斜線會使結尾的引號被轉"
1097+
"義 (escapes),變成一個未結束的字串。"
10961098

10971099
#: ../../faq/design.rst:633
10981100
msgid ""
@@ -1103,17 +1105,27 @@ msgid ""
11031105
"pass on the string quote character by escaping it with a backslash. These "
11041106
"rules work well when r-strings are used for their intended purpose."
11051107
msgstr ""
1108+
"設計出純字串是為了提供有自己反斜線轉義處理的處理器(主要是正規表示式)一個方"
1109+
"便的輸入方式。這種處理器會把未配對的結尾反斜線當成錯誤,所以純字串不允許如"
1110+
"此。相對地,他讓你用一個反斜線轉義引號。這些規則在他們預想的目的上正常地運"
1111+
"作。"
11061112

11071113
#: ../../faq/design.rst:640
11081114
msgid ""
11091115
"If you're trying to build Windows pathnames, note that all Windows system "
11101116
"calls accept forward slashes too::"
11111117
msgstr ""
1118+
"如果你嘗試建立 Windows 的路徑名稱,請注意 Windows 系統指令也接受一般斜線:\n"
1119+
"\n"
1120+
"::"
11121121

11131122
#: ../../faq/design.rst:645
11141123
msgid ""
11151124
"If you're trying to build a pathname for a DOS command, try e.g. one of ::"
11161125
msgstr ""
1126+
"如果你嘗試建立 DOS 指令的路徑名稱,試試看使用以下的範例:\n"
1127+
"\n"
1128+
"::"
11171129

11181130
#: ../../faq/design.rst:653
11191131
msgid "Why doesn't Python have a \"with\" statement for attribute assignments?"

0 commit comments

Comments
 (0)