python - zzwind's Blog

python 导入其它目录模块

 #导入当前x目录中的script1.py

import sys
sys.path.append('./x')
import script1




Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee