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

Commit3f58a0b

Browse files
[po] auto sync
1 parent5ad80c5 commit3f58a0b

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

‎.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation":"81.71%","updated_at":"2025-06-01T13:55:52Z"}
1+
{"translation":"81.72%","updated_at":"2025-06-01T14:55:31Z"}

‎library/ctypes.po

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3679,18 +3679,18 @@ msgstr ""
36793679
msgid""
36803680
"If *size* is not given (or if it is ``None``), the buffer is made one "
36813681
"element larger than *init*, effectively adding a NUL terminator."
3682-
msgstr""
3682+
msgstr"如果未给出 *size* (或者为 ``None``),缓冲区将设为比 *init* 大一个元素,实际就是增加一个 NUL 结束符。"
36833683

36843684
#:../../library/ctypes.rst:1959
36853685
msgid""
36863686
"If both arguments are given, *size* must not be less than ``len(init)``."
3687-
msgstr""
3687+
msgstr"如果同时给出两个参数,则 *size* 必须不小于 ``len(init)``。"
36883688

36893689
#:../../library/ctypes.rst:1963
36903690
msgid""
36913691
"If *size* is equal to ``len(init)``, a NUL terminator is not added. Do not "
36923692
"treat such a buffer as a C string."
3693-
msgstr""
3693+
msgstr"如果 *size* 等于 ``len(init)``,则不会增加一个 NUL 结束符。 不可将这样的缓冲区视为 C 字符串。"
36943694

36953695
#:../../library/ctypes.rst:1966
36963696
msgid"For example::"
@@ -3711,6 +3711,18 @@ msgid ""
37113711
" ...\n"
37123712
"ValueError: byte string too long"
37133713
msgstr""
3714+
">>> bytes(create_string_buffer(2))\n"
3715+
"b'\\x00\\x00'\n"
3716+
">>> bytes(create_string_buffer(b'ab'))\n"
3717+
"b'ab\\x00'\n"
3718+
">>> bytes(create_string_buffer(b'ab', 2))\n"
3719+
"b'ab'\n"
3720+
">>> bytes(create_string_buffer(b'ab', 4))\n"
3721+
"b'ab\\x00\\x00'\n"
3722+
">>> bytes(create_string_buffer(b'abcdef', 2))\n"
3723+
"Traceback (most recent call last):\n"
3724+
" ...\n"
3725+
"ValueError: byte string too long"
37143726

37153727
#:../../library/ctypes.rst:1981
37163728
msgid""
@@ -3731,6 +3743,8 @@ msgid ""
37313743
"The function takes the same arguments as :func:`~create_string_buffer` "
37323744
"except *init* must be a string and *size* counts :class:`c_wchar`."
37333745
msgstr""
3746+
"此函数接受与 :func:`~create_string_buffer` 相同的参数但是 *init* 必须是一个字符串而 *size* 是对 "
3747+
":class:`c_wchar` 计数。"
37343748

37353749
#:../../library/ctypes.rst:1993
37363750
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp