40行c++解决,代码清晰易懂 #include<iostream> #include<vector> #include<map> using namespace std; string decomp(string filepath){ int end_pos = filepath.size()-1; for(; end_pos >= 0; end_pos--){ if(filepath[end_pos] == '\\') break; } string file = filepath.substr(end_pos + 1, filepath.size...