Skip to content

10.3节中有一处翻译错误 #359

@zhouyc98

Description

@zhouyc98

10.3 使用相对路径名导入包中子模块中,有:

import语句的 . 和 .. 看起来很滑稽, 但它指定目录名.为当前目录,..B为目录../B。这种语法只适用于import

此处句子最后的「只适用于import」应更正为「只适用于from形式的import」,英文原文为:

The . and .. syntax on the import statement might look funny, but think of it as specifying a directory name. . means look in the current directory and ..B means look in the ../B directory. This syntax only works with the from form of import.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions