import os
相对路径:os.path.dirname(__file__)
绝对路径: os.path.abspath(__file__) os.path.realpath(__file__)
当前工作路径: os.getcwd()
创建文件夹 os.mkdir("xxx") 删除文件夹 os.rmdir('xxxx')
路径切割 os.path.split(path) #return tuple(head,tail)
路径拼接 os.path.join(path,*path) #在已存路径下新建一级文件夹