from os import * # makedirs('aaa/bbb') # mkdir('ccc') # mkdir('ccc/ddd')#必须ccc目录已经存在 # chdir('aaa/bbb') # print(getcwd()) # print(curdir) # print(pardir) # removedirs('aaa/bbb') # 目录不为空时会产生错误 # rmdir('ccc/ddd') # print(listdir('.')) # remove('ds')#删除文件 # rename('two.py','three.py') # print(stat('three.py')) # print(linesep) # print(pathsep) # print(sep) # system('dir') # print(name) # print(type(environ), environ) print(path.abspath('../')) print(path.split('c:/aaa/a.txt')) print(path.dirname(path.abspath(__file__))) print(__file__) print(path.basename(__file__)) print(path.exists('one.py')) print(path.isabs(__file__)) print(path.isfile(__file__)) print(path.isdir(__file__)) print(path.join('c:/', 'a.txt')) print(path.getatime(__file__)) print(path.getctime(__file__)) print(path.getmtime(__file__))