python3-cookbook
python3-cookbook copied to clipboard
10.3节中有一处翻译错误
在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.
这两天不上线了.有事给我发短信.回头见.!