📜  python drop 扩展 - Python 代码示例

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

代码示例1
>>> print(os.path.splitext(os.path.basename("/path/to/file/hemanth.txt"))[0])
hemanth