python獲取文件路徑, 文件名, 後綴名

def get_filePath_fileName_fileExt(fileUrl):
"""
獲取文件路徑, 文件名, 後綴名
:param fileUrl:
:return:
"""
filepath, tmpfilename = os.path.split(fileUrl)
shotname, extension = os.path.splitext(tmpfilename)
return filepath, shotname, extension
spa

相關文章
相關標籤/搜索