python from import与import as 的含义

from os import makedirs, unlink, sep   #从os包中引入 makedirs.unlink,sep类
from os.path import dirname, exists, isdir, splitext  从 os包中的path类中引入 dirmame exists 等方法
import urllib.request   //引入 urllib resquest包
from urllib.parse import urlparse 
from sys import argv 
import html.parser as h   #给包html.parser 定义一个h别名
原文地址:https://www.cnblogs.com/yrxns/p/7193259.html