【python】获取路径中最后一层路径

path = "D:\software\sensor_analysis_tool"
os.path.split(path)[-1]

 

posted @ 2022-11-09 15:12  凉雨知寒  阅读(985)  评论(0)    收藏  举报