OS标准库常用函数和属性
2.1 文件和目录
print("当前工作目录为:{}".format(os.getcwd())) # 返回当前工作目录
返回当一个文件的绝对路径 os.path.abspath(path)
拼接一个文件的路径 os.path.join(path1,path2,path3....)
判断目录是否存在 os.path.exists(path) 返回True或False
创建目录 os.mkdir(dir,mod=0o77)
os.rmdir()