python引用上级目录下的文件

上级引用
import sys
sys.path.append("..")
上上级引用
import sys
sys.path.append("...")