@@ -999,30 +999,32 @@ msgstr "加载器可以处理的模块的名字。"
999999
10001000#: ../../library/importlib.rst:684
10011001msgid "Path to the file of the module."
1002- msgstr ""
1002+ msgstr "模块的文件路径 "
10031003
10041004#: ../../library/importlib.rst:688
10051005msgid "Calls super's ``load_module()``."
1006- msgstr ""
1006+ msgstr "调用super的``load_module()``。 "
10071007
10081008#: ../../library/importlib.rst:690
10091009msgid "Use :meth:`Loader.exec_module` instead."
1010- msgstr ""
1010+ msgstr "使用 :meth:`Loader.exec_module` 来代替。 "
10111011
10121012#: ../../library/importlib.rst:695 ../../library/importlib.rst:1277
10131013msgid "Returns :attr:`path`."
1014- msgstr ""
1014+ msgstr "返回 :attr:`path`。 "
10151015
10161016#: ../../library/importlib.rst:699
10171017msgid "Reads *path* as a binary file and returns the bytes from it."
1018- msgstr ""
1018+ msgstr "读取 *path* 作为二进制文件并且返回来自它的字节数据。 "
10191019
10201020#: ../../library/importlib.rst:704
10211021msgid ""
10221022"An abstract base class for implementing source (and optionally bytecode) "
10231023"file loading. The class inherits from both :class:`ResourceLoader` and "
10241024":class:`ExecutionLoader`, requiring the implementation of:"
10251025msgstr ""
1026+ "一个用于实现源文件(和可选地字节码)加载的抽象基类。这个类继承自 :class:`ResourceLoader` 和 "
1027+ ":class:`ExecutionLoader`,需要实现:"
10261028
10271029#: ../../library/importlib.rst:708
10281030msgid ":meth:`ResourceLoader.get_data`"
@@ -1036,7 +1038,7 @@ msgstr ""
10361038msgid ""
10371039"Should only return the path to the source file; sourceless loading is not "
10381040"supported."
1039- msgstr ""
1041+ msgstr "应该是只返回源文件的路径;不支持无源加载。 "
10401042
10411043#: ../../library/importlib.rst:713
10421044msgid ""
@@ -1049,6 +1051,9 @@ msgid ""
10491051"loading by removing the parsing step of Python's compiler, and so no "
10501052"bytecode-specific API is exposed."
10511053msgstr ""
1054+ "由这个类定义的抽象方法用来添加可选的字节码文件支持。不实现这些可选的方法(或导致它们引发:exc:`NotImplementedError`异常)导致这个加载器只能与源代码一起工作。实现这些方法允许加载器能与源"
1055+ " "
1056+ "*和*字节码文件一起工作。不允许只提供字节码的*无源式*加载。字节码文件是通过移除Python编译器的解析步骤来加速加载的优化,并且因此没有开放出字节码专用的API。"
10521057
10531058#: ../../library/importlib.rst:724
10541059msgid ""
0 commit comments