Open zshuangyan opened 5 years ago
# 导入包或者模块 import x
from x import y
from x import y as z
import y as z (e.g., np for numpy).
2. 注释
从包中导入模块
from x import y
如果模块名过长,可以使用别名
from x import y as z
别名尽量用标准
import y as z (e.g., np for numpy).