import module
method 1:
import module_name as module_alias
import module_name,module_name,...
method 2:
from module_name import method_name,method_name,...
import sys #Return a list that contain the module search path print sys.path #Append a path to the module search path sys.path.append("/usr/bin")
时间: 2024-10-10 16:57:53