@@ -1312,7 +1312,7 @@ msgstr "寻找动态链接库"
13121312msgid ""
13131313"When programming in a compiled language, shared libraries are accessed when "
13141314"compiling/linking a program, and when the program is run."
1315- msgstr ""
1315+ msgstr "在编译型语言中,动态链接库会在编译、链接或者程序运行时访问。 "
13161316
13171317#: ../../library/ctypes.rst:1251
13181318msgid ""
@@ -1322,12 +1322,15 @@ msgid ""
13221322"while the ctypes library loaders act like when a program is run, and call "
13231323"the runtime loader directly."
13241324msgstr ""
1325+ " :func:`find_library` "
1326+ "函数j寻找动态链接库的方式和编译器以及运行加载时寻找动态链接库(当系统中有多个版本的动态链接库时,加载最新的一个)的方式类似,而 ctypes "
1327+ "库加载的方式和程序运行时的类似, 并直接调用运行时加载程序。"
13251328
13261329#: ../../library/ctypes.rst:1257
13271330msgid ""
13281331"The :mod:`ctypes.util` module provides a function which can help to "
13291332"determine the library to load."
1330- msgstr ""
1333+ msgstr ":mod:`ctypes.util` 模块提供了一个函数,可以帮助确定需要加载的库。 "
13311334
13321335#: ../../library/ctypes.rst:1265
13331336msgid ""
@@ -1336,41 +1339,47 @@ msgid ""
13361339"number (this is the form used for the posix linker option :option:`!-l`). "
13371340"If no library can be found, returns ``None``."
13381341msgstr ""
1342+ "尝试寻找一个库然后返回其路径名, *name* 是库名称, 且去除了 *lib* 等前缀和 ``.so`` 、 ``.dylib`` "
1343+ "、版本号等后缀(这是 posix 连接器 :option:`!-l` 选项使用的格式)。如果没有找到对应的库,则返回 ``None`` 。"
13391344
13401345#: ../../library/ctypes.rst:1270 ../../library/ctypes.rst:1903
13411346msgid "The exact functionality is system dependent."
1342- msgstr ""
1347+ msgstr "确切的功能取决于系统。 "
13431348
13441349#: ../../library/ctypes.rst:1272
13451350msgid ""
13461351"On Linux, :func:`find_library` tries to run external programs "
13471352"(``/sbin/ldconfig``, ``gcc``, ``objdump`` and ``ld``) to find the library "
13481353"file. It returns the filename of the library file."
13491354msgstr ""
1355+ "在 Linux 上, :func:`find_library` 会尝试运行外部程序(``/sbin/ldconfig``, ``gcc``, "
1356+ "``objdump`` 以及 ``ld``) 来寻找库文件。返回库文件的文件名。"
13501357
13511358#: ../../library/ctypes.rst:1276
13521359msgid ""
13531360"On Linux, the value of the environment variable ``LD_LIBRARY_PATH`` is used "
13541361"when searching for libraries, if a library cannot be found by any other "
13551362"means."
1356- msgstr ""
1363+ msgstr "在Linux 上,如果其他方式找不到的话,会使用环境变量 ``LD_LIBRARY_PATH`` 搜索动态链接库。 "
13571364
13581365#: ../../library/ctypes.rst:1280
13591366msgid "Here are some examples::"
1360- msgstr ""
1367+ msgstr "这是一些例子:: "
13611368
13621369#: ../../library/ctypes.rst:1291
13631370msgid ""
13641371"On OS X, :func:`find_library` tries several predefined naming schemes and "
13651372"paths to locate the library, and returns a full pathname if successful::"
1366- msgstr ""
1373+ msgstr "在 OS X 上, :func:`find_library` 会尝试几种预定义的命名方案和路径来查找库,如果成功,则返回完整的路径名:: "
13671374
13681375#: ../../library/ctypes.rst:1305
13691376msgid ""
13701377"On Windows, :func:`find_library` searches along the system search path, and "
13711378"returns the full pathname, but since there is no predefined naming scheme a "
13721379"call like ``find_library(\" c\" )`` will fail and return ``None``."
13731380msgstr ""
1381+ "在 Windows 上, :func:`find_library` 在系统路径中搜索,然后返回全路径,但是如果没有预定义的命名方案, "
1382+ "``find_library(\" c\" )`` 调用会返回 ``None``"
13741383
13751384#: ../../library/ctypes.rst:1309
13761385msgid ""
0 commit comments