截取/前的字符
var index = pythonpath.lastIndexOf("/");
Writepathexe = pythonpath.substring(0, index);
截取/后的字符
var index = pythonpath.lastIndexOf("/");
str =str .substring(index+1,str.length);
var index = pythonpath.lastIndexOf("/");
Writepathexe = pythonpath.substring(0, index);
截取/后的字符
var index = pythonpath.lastIndexOf("/");
str =str .substring(index+1,str.length);