You can use python with node.js
python-runner.js
var Python = require("python-runner");
Python.exec(
"print('Carma Carpooling')" + "\n" +
"print('Get there together')" + "\n"
//Carma Carpooling
//Get there together
)
.then(function(data){
console.log(data);
});
You can also use python3 or run it from a .py file.
Recommended Posts