@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.11\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2025-01-03 15:28 +0000\n "
14+ "POT-Creation-Date : 2025-09-22 20:37 +0000\n "
1515"PO-Revision-Date : 2025-09-22 16:49+0000\n "
1616"Last-Translator : python-doc bot, 2025\n "
1717"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -189,12 +189,14 @@ msgid ""
189189" Unix epoch, and the ``GetModuleHandleA()`` function, which returns a win32 "
190190"module handle."
191191msgstr ""
192+ "你可以貌似是调用其它 Python 函数那样直接调用这些函数。在这个例子中,我们调用了 ``time()`` 函数,该函数返回一个系统时间戳(从 "
193+ "Unix 时间起点到现在的秒数),而``GetModuleHandleA()`` 函数返回一个 win32 模块句柄。"
192194
193195#: ../../library/ctypes.rst:156
194196msgid ""
195197"This example calls both functions with a ``NULL`` pointer (``None`` should "
196198"be used as the ``NULL`` pointer)::"
197- msgstr ""
199+ msgstr "此函数中调用的两个函数都使用了空指针(用 ``None`` 作为空指针):: "
198200
199201#: ../../library/ctypes.rst:165
200202msgid ""
@@ -661,6 +663,8 @@ msgid ""
661663":attr:`argtypes` attribute, and the second argument will be converted from a"
662664" single character Python bytes object into a C char::"
663665msgstr ""
666+ "如果希望避免上述的 ``ord(\" x\" )`` 调用,可以设置 :attr:`argtypes` 属性,第二个参数就会将单字符的 Python "
667+ "二进制字符对象转换为 C 字符::"
664668
665669#: ../../library/ctypes.rst:503
666670msgid ""
@@ -1144,6 +1148,8 @@ msgid ""
11441148"an integer set to 0, 1, or 2, depending on the :option:`-O` or :option:`-OO`"
11451149" flag given on startup."
11461150msgstr ""
1151+ "一些动态链接库不仅仅导出函数,也会导出变量。一个例子就是 Python 库本身的 :c:data:`Py_OptimizeFlag` ,根据启动选项 "
1152+ ":option:`-O` 、 :option:`-OO` 的不同,它是值可能为 0、1、2 的整型。"
11471153
11481154#: ../../library/ctypes.rst:1081
11491155msgid ""
@@ -2933,6 +2939,8 @@ msgid ""
29332939"fields in the instance. :attr:`_pack_` must already be defined when "
29342940":attr:`_fields_` is assigned, otherwise it will have no effect."
29352941msgstr ""
2942+ "一个可选的小整数,它允许覆盖实体中结构体字段的对齐方式。 当 :attr:`_fields_` 被赋值时必须已经定义了 "
2943+ ":attr:`_pack_`,否则它将没有效果。"
29362944
29372945#: ../../library/ctypes.rst:2489
29382946msgid ""
0 commit comments