mirror of
https://github.com/zh-google-styleguide/zh-google-styleguide.git
synced 2025-02-19 20:50:10 +08:00
fix a typo
original text: Use from x import y as z if two modules named y are to be imported or if y is an inconveniently long name.
This commit is contained in:
parent
0f9338d8d3
commit
a4c02d6131
@ -64,7 +64,7 @@ Lint
|
||||
|
||||
使用 ``from x import y`` , 其中x是包前缀, y是不带前缀的模块名.
|
||||
|
||||
使用 ``from x import y as z``, 如果两个要导入的模块都叫做z或者y太长了.
|
||||
使用 ``from x import y as z``, 如果两个要导入的模块都叫做y或者y太长了.
|
||||
|
||||
例如, 模块 ``sound.effects.echo`` 可以用如下方式导入:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user