python import 绝对路径

import sys
sys.path.append("目标路径")
from 目标文件 import 目标文件中的类

猜你喜欢

转载自blog.csdn.net/qq_38973721/article/details/120901454