let path = require('path');
//console.log(path.dirname('/node/a/b/c/1.jpg'));
//console.log(path.basename('/node/a/b/c/1.jpg'));
//console.log(path.extname('/node/a/b/c/1.jpg'));
console.log(path.resolve('/node/a/b/c','../../','d'));
console.log(path.resolve(__dirname,'index.js'));