PHP
·
发表于 5年以前
·
阅读量:7564
>>> import os
>>> os.path.split('D:/source/dataset/new_file.txt')
('D:/source/dataset', 'new_file.txt')