Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhouyc98 opened this issue Aug 22, 2022 · 1 comment
Open

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

zhouyc98 opened this issue Aug 22, 2022 · 1 comment

Comments

@zhouyc98
Copy link

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.

@renzituo95
Copy link

renzituo95 commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants