1. 切割函数
os.path.split(path)
os.path.split('/python/demo/test.py')
>> ('/python/demo', 'test.py')
os.path.split('/python/demo/')
>> ('/python/demo', '')
2. dirname
os.path.dirname('/python/demo/test.py')
>> /python/demo
3. basename
os.path.basename('/python/demo/test.py')
>> test.py
4. join
os.path.join('/python', 'demo', 'test.py')
>> /python/demo/test.py
5. 绝对路径/相对路径 isabs
6.isdir、isfile、exists
7.path = os.getcwd()