# @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-07-25 16:08:16 发布