允许从 import 元素添加或移除别名,并相应地重命名引用。 Works both for
import ... as ...
and
from ... import ... as
statements.
在您经常引用具有长名称的模块时,在 import 语句中使用别名很有帮助。