一、文件路径相关函数:
import os
path1 = os.getcwd()#获取当前路径
path2 = os.path.join(dir1, dir2)#合并路径
path3 = os.path.abspath()#获取文件绝对路径
path4 = os.path.exits(dir3)#判定当前路径是否存在
os.makedirs()#创建文件
二、警告提示函数
assert函数
例子:
assert os.path.exists(path), "cannot find {}".format(path)
当前路径不错在则报错
未完待续。。。。。。