立即学习:https://edu.csdn.net/course/play/26755/340102?utm_source=blogtoedu
1.import (导入):
import ...(文件名)
from ... (文件名)import ...(函数, 全部)
举例:
import math
from math import cos, ten
from math import *
2.as(别名):
import ...(文件名) as ...(别名)
from ...(文件名)import...(函数)as...(别名)
举例:
import math as m
from math import cos as c