2019-01-08 拡張子なしのファイル名取得 filename,ext=os.path.splitext( os.path.basename('./2018/data.csv')) 参考 os.path.basenameは拡張子も含むファイル名