# @File : getfile.py
# @Author: Wang Zhimin
# @Date : 2019/10/11
string path = "D:/car2.mp4";
int pos = path.find_last_of('/');
string s(path.substr(pos + 1));
string name = s.substr(0, s.rfind("."));
3.python 获取文件名,去除后缀名
最新推荐文章于 2024-05-20 10:07:37 发布