📅  最后修改于: 2022-03-11 14:46:58.708000             🧑  作者: Mango
import os
# creates a tuple.
# fn contains the filename, in this case abc
# fend contains the file ending, in this case .txt
fname, fend = os.path.splitext("/Users/pankaj/abc.txt")