Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const spawn = require("child_process").spawn;
- const pythonProcess = spawn('python',["hello.py"]);
- pythonProcess.stdout.on('data', (data) => {
- alert(data)
- });
- pythonProcess.send(2)
- import sys
- import time
- for line in sys.argv:
- print(line)
Add Comment
Please, Sign In to add comment