python的IDE中需要,
import os
import sys
Sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(_file_))))
imprt A.alpha
A.alpha.al()
- # name: A.alpha
- # file: *Project_exampleAalpha.py
- # Importing alpha succeeded.
From <import sys是什么意思_学了半天,import 到底在干啥?_weixin_39791446的博客-CSDN博客>