📜  python 获取文件结尾 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:58.708000             🧑  作者: Mango

代码示例1
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")