查看当前路径:
os.path.realpath(__file__)
os.path.abspath(__file__)
os.getcwd()
修改当前的工作目录:
os.chdir('~/Desktop/data/')
查看当前路径:
os.path.realpath(__file__)
os.path.abspath(__file__)
os.getcwd()
修改当前的工作目录:
os.chdir('~/Desktop/data/')