Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c32d93b commit 2dd7d12Copy full SHA for 2dd7d12
1 file changed
library/py_compile.po
@@ -62,6 +62,12 @@ msgid ""
62
"``sys.stderr``, but no exception is raised. This function returns the path "
63
"to byte-compiled file, i.e. whatever *cfile* value was used."
64
msgstr ""
65
+"将源文件编译成字节码,并写出字节码缓存文件。源代码从名为 *file* 的文件中加载。 字节码写入 *cfile* ,默认为 "
66
+":pep:`3147`/:pep:`488` 路径,以 ``.pyc`` 结尾。例如,如果 *file* 是 ``/foo/bar/baz.py`` "
67
+",那么对于 Python 3.2,*cfile* 默认为 ``/foo/bar/__pycache__/baz.cpython-32.pyc`` 。 "
68
+"如果指定了 *dfile* ,那么在错误信息中,它将代替 *file* 作为源文件的名称。 如果 *doraise* 为true,当编译 *file* "
69
+"遇到错误时,会抛出一个 :exc:`PyCompileError` 。如果 *doraise* 为 false (默认值),错误字符串将写入 "
70
+"``sys.stderr`` ,但不会抛出异常。 该函数返回编译后字节文件的路径,即 *cfile* 的值。"
71
72
#: ../../library/py_compile.rst:45
73
msgid ""
0 commit comments