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

Commitc88a291

Browse files
[po] auto sync
1 parent0cfb0a6 commitc88a291

File tree

3 files changed

+78
-19
lines changed

3 files changed

+78
-19
lines changed

‎.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation":"81.43%","updated_at":"2025-04-26T01:19:29Z"}
1+
{"translation":"81.47%","updated_at":"2025-04-26T10:55:41Z"}

‎library/fcntl.po

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,20 +218,25 @@ msgid ""
218218
" as the *request* argument can be found in the :mod:`termios` module, under "
219219
"the same names as used in the relevant C header files."
220220
msgstr""
221+
"*request* 形参被限制为能被放入 32 或 64 个比特位的值,具体取决于所在的平台。 在 :mod:`termios` "
222+
"模块中还包含一些可被用作 *request* 参数的额外常量,其名称与相关 C 语言头文件中所使用的相同。"
221223

222224
#:../../library/fcntl.rst:132
223225
msgid""
224226
"The parameter *arg* can be an integer, a :term:`bytes-like object`, or a "
225227
"string. The type and size of *arg* must match the type and size of the "
226228
"argument of the operation as specified in the relevant C documentation."
227229
msgstr""
230+
"形参 *arg* 可以是一个整数, :term:`bytes-like object` 或者字符串。 *arg* 的类型和大小必须与对应 C "
231+
"文档中规定的参数的类型和大小相匹配。"
228232

229233
#:../../library/fcntl.rst:137
230234
msgid""
231235
"If *arg* does not support the read-write buffer interface or the "
232236
"*mutate_flag* is false, behavior is as for the :func:`~fcntl.fcntl` "
233237
"function."
234238
msgstr""
239+
"如果 *arg* 不支持读写缓冲区接口或者 *mutate_flag* 为假值,则其行为与 :func:`~fcntl.fcntl` 函数一样。"
235240

236241
#:../../library/fcntl.rst:141
237242
msgid""
@@ -244,6 +249,10 @@ msgid ""
244249
"copied into a static buffer 1024 bytes long which is then passed to "
245250
":func:`ioctl` and copied back into the supplied buffer."
246251
msgstr""
252+
"如果 *arg* 支持读写缓冲区接口 (就像 :class:`bytearray`) 并且 *mutate_flag* "
253+
"为(默认的)真值,那么缓冲区(实际上)会被传给下层的 :c:func:`!ioctl` 系统调用,后者的返回代码则会回传给调用方 Python "
254+
"对象,而缓冲区的新内容将反映 :c:func:`ioctl` 的动作。 这里做了一点简化,因为如果给出的缓冲区长度小于 1024 "
255+
"字节则它会先被拷贝到一个长度为 1024 字节的静态缓冲区然后再传给 :func:`ioctl` 并把结果拷贝回给出的缓冲区。"
247256

248257
#:../../library/fcntl.rst:150
249258
msgid""
@@ -259,6 +268,8 @@ msgid ""
259268
"too small), this is most likely to result in a segmentation violation or a "
260269
"more subtle data corruption."
261270
msgstr""
271+
"如果 *arg* 的类型和大小与对应操作的参数的类型和大小不相匹配(例如,如果预期传入一个指针却传入了一个整数,或者由操作系统返回的缓冲区中的信息大于 "
272+
"1024 字节),这就很有可能导致段错误或更微妙的数据损坏。"
262273

263274
#:../../library/fcntl.rst:161
264275
msgid"An example::"

‎library/stdtypes.po

Lines changed: 66 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3805,23 +3805,23 @@ msgstr ""
38053805

38063806
#:../../library/stdtypes.rst:2338
38073807
msgid"Formatted String Literals (f-strings)"
3808-
msgstr""
3808+
msgstr"格式化字符串字面值(f-字符串)"
38093809

38103810
#:../../library/stdtypes.rst:2341
38113811
msgid""
38123812
"The :keyword:`await` and :keyword:`async for` can be used in expressions "
38133813
"within f-strings."
3814-
msgstr""
3814+
msgstr":keyword:`await` 和 :keyword:`async for` 可在 f-字符串内部的表达式中使用。"
38153815

38163816
#:../../library/stdtypes.rst:2344
38173817
msgid"Added the debugging operator (``=``)"
3818-
msgstr""
3818+
msgstr"增加了调试运算符 (``=``)"
38193819

38203820
#:../../library/stdtypes.rst:2346
38213821
msgid""
38223822
"Many restrictions on expressions within f-strings have been removed. "
38233823
"Notably, nested strings, comments, and backslashes are now permitted."
3824-
msgstr""
3824+
msgstr"许多针对 f-字符串内部的表达式的限制已被移除。 例如,嵌套字符串、注释和反斜杠现在都是允许的。"
38253825

38263826
#:../../library/stdtypes.rst:2350
38273827
msgid""
@@ -3832,6 +3832,9 @@ msgid ""
38323832
"evaluated at runtime, similarly to :meth:`str.format`, and are converted "
38333833
"into regular :class:`str` objects. For example:"
38343834
msgstr""
3835+
":dfn:`f-字符串` (正式名称为 :dfn:`格式化字符串字面值`) 是带有 ``f`` 或 ``F`` 前缀的字符串字面值。 "
3836+
"这种类型的字符串字面值允许将任意 Python 表达式嵌入到由花括号 (``{}``) 标记的 *替换字段* 内部。 这些表达式将在运行时被求值,这与 "
3837+
":meth:`str.format` 类似,并被转换为常规的 :class:`str` 对象。 例如:"
38353838

38363839
#:../../library/stdtypes.rst:2358
38373840
msgid""
@@ -3840,70 +3843,89 @@ msgid ""
38403843
">>> f'{who.title()} expects the {nationality} Inquisition!'\n"
38413844
"'Nobody expects the Spanish Inquisition!'"
38423845
msgstr""
3846+
">>> who = 'nobody'\n"
3847+
">>> nationality = 'Spanish'\n"
3848+
">>> f'{who.title()} expects the {nationality} Inquisition!'\n"
3849+
"'Nobody expects the Spanish Inquisition!'"
38433850

38443851
#:../../library/stdtypes.rst:2365
38453852
msgid"It is also possible to use a multi line f-string:"
3846-
msgstr""
3853+
msgstr"也可以使用包含多行的 f-字符串:"
38473854

38483855
#:../../library/stdtypes.rst:2367
38493856
msgid""
38503857
">>> f'''This is a string\n"
38513858
"... on two lines'''\n"
38523859
"'This is a string\\non two lines'"
38533860
msgstr""
3861+
">>> f'''This is a string\n"
3862+
"... on two lines'''\n"
3863+
"'This is a string\\non two lines'"
38543864

38553865
#:../../library/stdtypes.rst:2373
38563866
msgid""
38573867
"A single opening curly bracket, ``'{'``, marks a *replacement field* that "
38583868
"can contain any Python expression:"
3859-
msgstr""
3869+
msgstr"一个单独的左花括号,``'{'``,标记一个可包含任意 Python 表达式的 *替换字段*:"
38603870

38613871
#:../../library/stdtypes.rst:2376
38623872
msgid""
38633873
">>> nationality = 'Spanish'\n"
38643874
">>> f'The {nationality} Inquisition!'\n"
38653875
"'The Spanish Inquisition!'"
38663876
msgstr""
3877+
">>> nationality = 'Spanish'\n"
3878+
">>> f'The {nationality} Inquisition!'\n"
3879+
"'The Spanish Inquisition!'"
38673880

38683881
#:../../library/stdtypes.rst:2382
38693882
msgid"To include a literal ``{`` or ``}``, use a double bracket:"
3870-
msgstr""
3883+
msgstr"要包括 ``{`` 或 ``}`` 字面值,请使用双花括号:"
38713884

38723885
#:../../library/stdtypes.rst:2384
38733886
msgid""
38743887
">>> x = 42\n"
38753888
">>> f'{{x}} is {x}'\n"
38763889
"'{x} is 42'"
38773890
msgstr""
3891+
">>> x = 42\n"
3892+
">>> f'{{x}} is {x}'\n"
3893+
"'{x} is 42'"
38783894

38793895
#:../../library/stdtypes.rst:2390
38803896
msgid""
38813897
"Functions can also be used, and :ref:`format specifiers <formatstrings>`:"
3882-
msgstr""
3898+
msgstr"还可以使用函数,以及 :ref:`格式说明符 <formatstrings>`:"
38833899

38843900
#:../../library/stdtypes.rst:2392
38853901
msgid""
38863902
">>> from math import sqrt\n"
38873903
">>> f'√2\\N{ALMOST EQUAL TO} {sqrt(2):.5f}'\n"
38883904
"'√2 ≈ 1.41421'"
38893905
msgstr""
3906+
">>> from math import sqrt\n"
3907+
">>> f'√2\\N{ALMOST EQUAL TO} {sqrt(2):.5f}'\n"
3908+
"'√2 ≈ 1.41421'"
38903909

38913910
#:../../library/stdtypes.rst:2398
38923911
msgid"Any non-string expression is converted using :func:`str`, by default:"
3893-
msgstr""
3912+
msgstr"在默认情况下,任何非字符串表达式都将使用 :func:`str` 来转换:"
38943913

38953914
#:../../library/stdtypes.rst:2400
38963915
msgid""
38973916
">>> from fractions import Fraction\n"
38983917
">>> f'{Fraction(1, 3)}'\n"
38993918
"'1/3'"
39003919
msgstr""
3920+
">>> from fractions import Fraction\n"
3921+
">>> f'{Fraction(1, 3)}'\n"
3922+
"'1/3'"
39013923

39023924
#:../../library/stdtypes.rst:2406
39033925
msgid""
39043926
"To use an explicit conversion, use the ``!`` (exclamation mark) operator, "
39053927
"followed by any of the valid formats, which are:"
3906-
msgstr""
3928+
msgstr"要使用显式转换,请使用 ``!`` (叹号) 运算符,后面跟任意的有效格式说明符,包括:"
39073929

39083930
#:../../library/stdtypes.rst:2410../../library/stdtypes.rst:2578
39093931
#:../../library/stdtypes.rst:3797
@@ -3912,27 +3934,27 @@ msgstr "转换符"
39123934

39133935
#:../../library/stdtypes.rst:2412
39143936
msgid"``!a``"
3915-
msgstr""
3937+
msgstr"``!a``"
39163938

39173939
#:../../library/stdtypes.rst:2412
39183940
msgid":func:`ascii`"
39193941
msgstr":func:`ascii`"
39203942

39213943
#:../../library/stdtypes.rst:2413
39223944
msgid"``!r``"
3923-
msgstr""
3945+
msgstr"``!r``"
39243946

39253947
#:../../library/stdtypes.rst:2413
39263948
msgid":func:`repr`"
39273949
msgstr":func:`repr`"
39283950

39293951
#:../../library/stdtypes.rst:2414
39303952
msgid"``!s``"
3931-
msgstr""
3953+
msgstr"``!s``"
39323954

39333955
#:../../library/stdtypes.rst:2414
39343956
msgid":func:`str`"
3935-
msgstr""
3957+
msgstr":func:`str`"
39363958

39373959
#:../../library/stdtypes.rst:2417
39383960
msgid"For example:"
@@ -3949,6 +3971,14 @@ msgid ""
39493971
">>> print(f'{question!a}')\n"
39503972
"'\\xbfD\\xf3nde est\\xe1 el Presidente?'"
39513973
msgstr""
3974+
">>> from fractions import Fraction\n"
3975+
">>> f'{Fraction(1, 3)!s}'\n"
3976+
"'1/3'\n"
3977+
">>> f'{Fraction(1, 3)!r}'\n"
3978+
"'Fraction(1, 3)'\n"
3979+
">>> question = '¿Dónde está el Presidente?'\n"
3980+
">>> print(f'{question!a}')\n"
3981+
"'\\xbfD\\xf3nde est\\xe1 el Presidente?'"
39523982

39533983
#:../../library/stdtypes.rst:2430
39543984
msgid""
@@ -3957,6 +3987,8 @@ msgid ""
39573987
" within the brackets, and can be used with a converter. By default, the "
39583988
"debugging operator uses the :func:`repr` (``!r``) conversion. For example:"
39593989
msgstr""
3990+
"在调试期间同时看到表达式和值会很有帮助,具体是在表达式后使用等号 (``=``)。 这将保留花括号内部的空格,并可以使用转换器。 "
3991+
"在默认情况下,调试运算符使用 :func:`repr` (``!r``) 转换器。 例如:"
39603992

39613993
#:../../library/stdtypes.rst:2436
39623994
msgid""
@@ -3969,6 +4001,14 @@ msgid ""
39694001
">>> f'{calculation = !s}'\n"
39704002
"'calculation = 1/3'"
39714003
msgstr""
4004+
">>> from fractions import Fraction\n"
4005+
">>> calculation = Fraction(1, 3)\n"
4006+
">>> f'{calculation=}'\n"
4007+
"'calculation=Fraction(1, 3)'\n"
4008+
">>> f'{calculation = }'\n"
4009+
"'calculation = Fraction(1, 3)'\n"
4010+
">>> f'{calculation = !s}'\n"
4011+
"'calculation = 1/3'"
39724012

39734013
#:../../library/stdtypes.rst:2447
39744014
msgid""
@@ -3980,6 +4020,9 @@ msgid ""
39804020
"formatted result is then used as the final value for the replacement field. "
39814021
"For example:"
39824022
msgstr""
4023+
"输出一旦已被求值,就可以用 :ref:`格式说明符 <formatstrings>` 后面跟一个冒号 (``':'``) 来格式化它。 "
4024+
"在表达式已被求值,并可能被转换为字符串之后,就会调用结果的 :meth:`!__format__` "
4025+
"方法并附带该格式说明符,或者如果未给出格式说明符则附带空字符串。 随后将使用已格式化的结果作为替换字段最终的值。 例如:"
39834026

39844027
#:../../library/stdtypes.rst:2455
39854028
msgid""
@@ -3989,6 +4032,11 @@ msgid ""
39894032
">>> f'{Fraction(1, 7):_^+10}'\n"
39904033
"'___+1/7___'"
39914034
msgstr""
4035+
">>> from fractions import Fraction\n"
4036+
">>> f'{Fraction(1, 7):.6f}'\n"
4037+
"'0.142857'\n"
4038+
">>> f'{Fraction(1, 7):_^+10}'\n"
4039+
"'___+1/7___'"
39924040

39934041
#:../../library/stdtypes.rst:2467
39944042
msgid"``printf``-style String Formatting"
@@ -9686,15 +9734,15 @@ msgstr "str.splitlines 方法"
96869734

96879735
#:../../library/stdtypes.rst:2323
96889736
msgid"! formatted string literal"
9689-
msgstr""
9737+
msgstr"! 格式化字符串字面值"
96909738

96919739
#:../../library/stdtypes.rst:2323
96929740
msgid"formatted string literals"
9693-
msgstr""
9741+
msgstr"格式化字符串字面值"
96949742

96959743
#:../../library/stdtypes.rst:2323
96969744
msgid"! f-string"
9697-
msgstr""
9745+
msgstr"! f-字符串"
96989746

96999747
#:../../library/stdtypes.rst:2323
97009748
msgid"f-strings"
@@ -9726,7 +9774,7 @@ msgstr "格式字符串字面值形式"
97269774

97279775
#:../../library/stdtypes.rst:2323
97289776
msgid"! (exclamation mark)"
9729-
msgstr""
9777+
msgstr"! (叹号)"
97309778

97319779
#:../../library/stdtypes.rst:2323
97329780
msgid": (colon)"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp