dynamic load module
sys.path.append(os.path.direname(file_path+'/'+file_name+'.py'))
model_file = __import__(file_name)
pth_file = os.path.split(os.path.abspath(__file__))[0] +'/'+ pth_name
dynamic load module
sys.path.append(os.path.direname(file_path+'/'+file_name+'.py'))
model_file = __import__(file_name)
pth_file = os.path.split(os.path.abspath(__file__))[0] +'/'+ pth_name
本文标题:python code
本文链接:https://www.haomeiwen.com/subject/gkyrgxtx.html
网友评论