import modulename [as alias] import os,sys # 多个模块 import pandas as pd # 给模块别名 import random # from modelname import member modelname 模块名称,区分大小写 member 导入的变量、函数或者类等 , 可以导入多个 逗号分隔 ,导入全部 * import random print(random.randint(1,9)) from random import random,randint print(random()) from random import * print(randint(1,10))