import os.path印刷(os.path.splitext(FileDirが)[1])#GETファイル名の拡張子
import
os.path
印刷(os.path.split(path)[1])#GETファイル名
os.path.split(path)[
1
]