@@ -428,6 +428,8 @@ msgid ""
428
428
"exist, is a symlink loop, or whose evaluation raises :exc:`OSError`. All "
429
429
"such components are appended unchanged to the existing part of the path."
430
430
msgstr ""
431
+ "在默认情况下,对路径的求值将执行至第一个不存在的、导致符号链接循环的,或者求值引发 :exc:`OSError` 的路径组件。 "
432
+ "所有这样的组件将不经修改地添加到现有的路径组件。"
431
433
432
434
#: ../../library/os.path.rst:358
433
435
msgid ""
@@ -436,10 +438,12 @@ msgid ""
436
438
"path may be missing or inaccessible, may still contain links or loops, and "
437
439
"may traverse non-directories."
438
440
msgstr ""
441
+ "会以这种方式来处理的错误包括 \" access denied\" , \" not a directory\" 或 \" bad argument to "
442
+ "internal function\" 。 因此,结果路径可能不存在或不可访问,可能仍然包含链接或循环,并可能遍历至非目录。"
439
443
440
444
#: ../../library/os.path.rst:363
441
445
msgid "This behavior can be modified by keyword arguments:"
442
- msgstr ""
446
+ msgstr "此行为可通过关键字参数来修改: "
443
447
444
448
#: ../../library/os.path.rst:365
445
449
msgid ""
@@ -448,6 +452,8 @@ msgid ""
448
452
"*path* does not exist, or another :exc:`OSError` if it is otherwise "
449
453
"inaccessible."
450
454
msgstr ""
455
+ "如果 *strict* 为 ``True``,则在对路径求值时遇到的第一个错误将被重新引发。 具体来说,如果 *path* 不存在则会引发 "
456
+ ":exc:`FileNotFoundError`,或者如果因其他原因而不可访问则会引发 :exc:`OSError`。"
451
457
452
458
#: ../../library/os.path.rst:370
453
459
msgid ""
@@ -456,6 +462,9 @@ msgid ""
456
462
"returned path will not contain any symbolic links, but the named file and "
457
463
"some of its parent directories may be missing."
458
464
msgstr ""
465
+ "如果 *strict* 为 :py:data:`os.path.ALLOW_MISSING`,则 :exc:`FileNotFoundError` "
466
+ "以外的错误将被重新引发(就像设置 ``strict=True`` 一样)。 "
467
+ "因此,返回的路径将不包含任何符号链接,但指定名称的文件及其某些上级目录可能会不存在。"
459
468
460
469
#: ../../library/os.path.rst:376
461
470
msgid ""
0 commit comments