javascript - How can access variable from python file into js or node js -
i have 1 python file , has many variables. want access particular variable node js.
i have tried python shell (which use python-nodejs integration) i.e pyshell.on('message', function(message) {
console.log('from python script: ' + message);
})
it prints messages sent python script (a simple "print" statement)
output shows like
from python script : today :11/17/2016
from python script: hello
from python script: 123
but want particular message or value today:11/17/2016. how can that?
Comments
Post a Comment