@@ -519,6 +519,8 @@ msgid ""
519
519
"exist, is a symlink loop, or whose evaluation raises :exc:`OSError`. All "
520
520
"such components are appended unchanged to the existing part of the path."
521
521
msgstr ""
522
+ "在默认情况下,对路径的求值将执行至第一个不存在的、导致符号链接循环的,或者求值引发 :exc:`OSError` 的路径组件。 "
523
+ "所有这样的组件将不经修改地添加到现有的路径组件。"
522
524
523
525
#: ../../library/os.path.rst:415
524
526
msgid ""
@@ -527,10 +529,12 @@ msgid ""
527
529
"path may be missing or inaccessible, may still contain links or loops, and "
528
530
"may traverse non-directories."
529
531
msgstr ""
532
+ "会以这种方式来处理的错误包括 \" access denied\" , \" not a directory\" 或 \" bad argument to "
533
+ "internal function\" 。 因此,结果路径可能不存在或不可访问,可能仍然包含链接或循环,并可能遍历至非目录。"
530
534
531
535
#: ../../library/os.path.rst:420
532
536
msgid "This behavior can be modified by keyword arguments:"
533
- msgstr ""
537
+ msgstr "此行为可通过关键字参数来修改: "
534
538
535
539
#: ../../library/os.path.rst:422
536
540
msgid ""
@@ -539,6 +543,8 @@ msgid ""
539
543
"*path* does not exist, or another :exc:`OSError` if it is otherwise "
540
544
"inaccessible."
541
545
msgstr ""
546
+ "如果 *strict* 为 ``True``,则在对路径求值时遇到的第一个错误将被重新引发。 具体来说,如果 *path* 不存在则会引发 "
547
+ ":exc:`FileNotFoundError`,或者如果因其他原因而不可访问则会引发 :exc:`OSError`。"
542
548
543
549
#: ../../library/os.path.rst:427
544
550
msgid ""
@@ -547,6 +553,9 @@ msgid ""
547
553
"returned path will not contain any symbolic links, but the named file and "
548
554
"some of its parent directories may be missing."
549
555
msgstr ""
556
+ "如果 *strict* 为 :py:data:`os.path.ALLOW_MISSING`,则 :exc:`FileNotFoundError` "
557
+ "以外的错误将被重新引发(就像设置 ``strict=True`` 一样)。 "
558
+ "因此,返回的路径将不包含任何符号链接,但指定名称的文件及其某些上级目录可能会不存在。"
550
559
551
560
#: ../../library/os.path.rst:433
552
561
msgid ""
0 commit comments