導(dǎo)入整個(gè)模塊:
import module_name
module_name.function() //使用模塊的函數(shù)
導(dǎo)入模塊中的特定函數(shù):
from module_name import function_name
使用逗號分隔函數(shù)名,根據(jù)需要從模塊中導(dǎo)入任意數(shù)量的函數(shù):
from module_name import function_0,function_1,function_2