📜  python 从相对路径中提取文件名 - Python 代码示例

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

代码示例2
import os
infile = "./../../../../_data/matrix_data/5mer_normalized.tsv"
print(os.path.basename(infile))
>>> "5mer_normalized.tsv"