python中的ospathsplitext是干什么用的?
作用 :分離文件名與擴展名;默認返回(fname,fextension)元組,可做分片操作 。比如:<span style="font-size: 18px;">import os path_01='D:/User/wgy/workplace/data/notMNIST_large.tar.gar' path_02='D:/User/wgy/workplace/data/notMNIST_large' root_01=os.path.splitext(path_01) root_02=os.path.splitext(path_02) print(root_01) print(root_02)</span>