很简单,举个栗子,
如果import math的话,使用函数的时候必须 math.sqrt(x) 就是必须用包名.函数名
而from..import的话就直接使用函数名就可以了 from math import * 此时可以直接使用 sqrt(x)。