我们知道在python下可以用以下代码:
import os
current_path=os.path.dirname(__file__)
os.path.abspath(os.path.dirname(__file__)+os.path.sep+"..")
记录一下!
我们知道在python下可以用以下代码:
import os
current_path=os.path.dirname(__file__)
os.path.abspath(os.path.dirname(__file__)+os.path.sep+"..")
记录一下!