📌  相关文章
📜  python 从文件夹外的其他文件夹导入 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:05.656000             🧑  作者: Mango

代码示例1
# Bring your packages onto the path
import sys, os
sys.path.append(os.path.abspath(os.path.join('..', 'other_folder')))

# Now do your import
from other_folder.other_file import *