📜  导入本地模块 python 代码示例

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

代码示例2
# If the module is in the same directory:
import 

# If the module isn't in the same directory:
import sys
# insert at 1, 0 is the script path (or '' in REPL)
sys.path.insert(1, '/path/to/application/app/folder')

import