const py = require("child_process").spawn("python",['파이썬파일.py",파라미터1, 파라미터2, ...]);
# 파이썬파일.py
print("Hello python")
//index.js
const py = require("child_process").spawn("python",['파이썬파일.py",파라미터1, 파라미터2, ...]);
py.stdout.on('data',(data)=>{
console.log(data.toStirng());
})
// expect output : "Hello python"
//index.js
const py = require('child_process').spawn('python',['read-python.py',]);
py.stdout.on('data',(data)=> {
console.log(data.toString());
})
# read-python.py
def getValue():
print("value")
if __name__ == "__main__":
getValue()
//index.js
const py = require('child_process').spawn('python',['read-python.py',"테스트","성공적"]);
py.stdout.on('data',(data)=> {
console.log(data.toString());
})
# read-python.py
import sys
def getValue(var1, var2):
print(var1 + " "+var2)
if __name__ == "__main__":
getValue(sys.argv[1], sys.argv[2])
# expect output : 테스트 성공적
print(sys.argv[0])
# expect output : read-python.py
const py = require("child_process").spawn("python",['파이썬파일.py",파라미터1, 파라미터2, ...]);
# 파이썬파일.py
print("Hello python")
//index.js
const py = require("child_process").spawn("python",['파이썬파일.py",파라미터1, 파라미터2, ...]);
py.stdout.on('data',(data)=>{
console.log(data.toStirng());
})
// expect output : "Hello python"
//index.js
const py = require('child_process').spawn('python',['read-python.py',]);
py.stdout.on('data',(data)=> {
console.log(data.toString());
})
# read-python.py
def getValue():
print("value")
if __name__ == "__main__":
getValue()
//index.js
const py = require('child_process').spawn('python',['read-python.py',"테스트","성공적"]);
py.stdout.on('data',(data)=> {
console.log(data.toString());
})
# read-python.py
import sys
def getValue(var1, var2):
print(var1 + " "+var2)
if __name__ == "__main__":
getValue(sys.argv[1], sys.argv[2])
# expect output : 테스트 성공적
print(sys.argv[0])
# expect output : read-python.py
const py = require("child_process").spawn("python",['파이썬파일.py",파라미터1, 파라미터2, ...]);
# 파이썬파일.py
print("Hello python")
//index.js
const py = require("child_process").spawn("python",['파이썬파일.py",파라미터1, 파라미터2, ...]);
py.stdout.on('data',(data)=>{
console.log(data.toStirng());
})
// expect output : "Hello python"
//index.js
const py = require('child_process').spawn('python',['read-python.py',]);
py.stdout.on('data',(data)=> {
console.log(data.toString());
})
# read-python.py
def getValue():
print("value")
if __name__ == "__main__":
getValue()
//index.js
const py = require('child_process').spawn('python',['read-python.py',"테스트","성공적"]);
py.stdout.on('data',(data)=> {
console.log(data.toString());
})
# read-python.py
import sys
def getValue(var1, var2):
print(var1 + " "+var2)
if __name__ == "__main__":
getValue(sys.argv[1], sys.argv[2])
# expect output : 테스트 성공적
print(sys.argv[0])
# expect output : read-python.py
const py = require("child_process").spawn("python",['파이썬파일.py",파라미터1, 파라미터2, ...]);
# 파이썬파일.py
print("Hello python")
//index.js
const py = require("child_process").spawn("python",['파이썬파일.py",파라미터1, 파라미터2, ...]);
py.stdout.on('data',(data)=>{
console.log(data.toStirng());
})
// expect output : "Hello python"
//index.js
const py = require('child_process').spawn('python',['read-python.py',]);
py.stdout.on('data',(data)=> {
console.log(data.toString());
})
# read-python.py
def getValue():
print("value")
if __name__ == "__main__":
getValue()
//index.js
const py = require('child_process').spawn('python',['read-python.py',"테스트","성공적"]);
py.stdout.on('data',(data)=> {
console.log(data.toString());
})
# read-python.py
import sys
def getValue(var1, var2):
print(var1 + " "+var2)
if __name__ == "__main__":
getValue(sys.argv[1], sys.argv[2])
# expect output : 테스트 성공적
print(sys.argv[0])
# expect output : read-python.py
const py = require("child_process").spawn("python",['파이썬파일.py",파라미터1, 파라미터2, ...]);
# 파이썬파일.py
print("Hello python")
//index.js
const py = require("child_process").spawn("python",['파이썬파일.py",파라미터1, 파라미터2, ...]);
py.stdout.on('data',(data)=>{
console.log(data.toStirng());
})
// expect output : "Hello python"
//index.js
const py = require('child_process').spawn('python',['read-python.py',]);
py.stdout.on('data',(data)=> {
console.log(data.toString());
})
# read-python.py
def getValue():
print("value")
if __name__ == "__main__":
getValue()
//index.js
const py = require('child_process').spawn('python',['read-python.py',"테스트","성공적"]);
py.stdout.on('data',(data)=> {
console.log(data.toString());
})
# read-python.py
import sys
def getValue(var1, var2):
print(var1 + " "+var2)
if __name__ == "__main__":
getValue(sys.argv[1], sys.argv[2])
# expect output : 테스트 성공적
print(sys.argv[0])
# expect output : read-python.py
const py = require("child_process").spawn("python",['파이썬파일.py",파라미터1, 파라미터2, ...]);
# 파이썬파일.py
print("Hello python")
//index.js
const py = require("child_process").spawn("python",['파이썬파일.py",파라미터1, 파라미터2, ...]);
py.stdout.on('data',(data)=>{
console.log(data.toStirng());
})
// expect output : "Hello python"
//index.js
const py = require('child_process').spawn('python',['read-python.py',]);
py.stdout.on('data',(data)=> {
console.log(data.toString());
})
# read-python.py
def getValue():
print("value")
if __name__ == "__main__":
getValue()
//index.js
const py = require('child_process').spawn('python',['read-python.py',"테스트","성공적"]);
py.stdout.on('data',(data)=> {
console.log(data.toString());
})
# read-python.py
import sys
def getValue(var1, var2):
print(var1 + " "+var2)
if __name__ == "__main__":
getValue(sys.argv[1], sys.argv[2])
# expect output : 테스트 성공적
print(sys.argv[0])
# expect output : read-python.py
const py = require("child_process").spawn("python",['파이썬파일.py",파라미터1, 파라미터2, ...]);
# 파이썬파일.py
print("Hello python")
//index.js
const py = require("child_process").spawn("python",['파이썬파일.py",파라미터1, 파라미터2, ...]);
py.stdout.on('data',(data)=>{
console.log(data.toStirng());
})
// expect output : "Hello python"
//index.js
const py = require('child_process').spawn('python',['read-python.py',]);
py.stdout.on('data',(data)=> {
console.log(data.toString());
})
# read-python.py
def getValue():
print("value")
if __name__ == "__main__":
getValue()
//index.js
const py = require('child_process').spawn('python',['read-python.py',"테스트","성공적"]);
py.stdout.on('data',(data)=> {
console.log(data.toString());
})
# read-python.py
import sys
def getValue(var1, var2):
print(var1 + " "+var2)
if __name__ == "__main__":
getValue(sys.argv[1], sys.argv[2])
# expect output : 테스트 성공적
print(sys.argv[0])
# expect output : read-python.py
const py = require("child_process").spawn("python",['파이썬파일.py",파라미터1, 파라미터2, ...]);
# 파이썬파일.py
print("Hello python")
//index.js
const py = require("child_process").spawn("python",['파이썬파일.py",파라미터1, 파라미터2, ...]);
py.stdout.on('data',(data)=>{
console.log(data.toStirng());
})
// expect output : "Hello python"
//index.js
const py = require('child_process').spawn('python',['read-python.py',]);
py.stdout.on('data',(data)=> {
console.log(data.toString());
})
# read-python.py
def getValue():
print("value")
if __name__ == "__main__":
getValue()
//index.js
const py = require('child_process').spawn('python',['read-python.py',"테스트","성공적"]);
py.stdout.on('data',(data)=> {
console.log(data.toString());
})
# read-python.py
import sys
def getValue(var1, var2):
print(var1 + " "+var2)
if __name__ == "__main__":
getValue(sys.argv[1], sys.argv[2])
# expect output : 테스트 성공적
print(sys.argv[0])
# expect output : read-python.py
const py = require("child_process").spawn("python",['파이썬파일.py",파라미터1, 파라미터2, ...]);
# 파이썬파일.py
print("Hello python")
//index.js
const py = require("child_process").spawn("python",['파이썬파일.py",파라미터1, 파라미터2, ...]);
py.stdout.on('data',(data)=>{
console.log(data.toStirng());
})
// expect output : "Hello python"
//index.js
const py = require('child_process').spawn('python',['read-python.py',]);
py.stdout.on('data',(data)=> {
console.log(data.toString());
})
# read-python.py
def getValue():
print("value")
if __name__ == "__main__":
getValue()
//index.js
const py = require('child_process').spawn('python',['read-python.py',"테스트","성공적"]);
py.stdout.on('data',(data)=> {
console.log(data.toString());
})
# read-python.py
import sys
def getValue(var1, var2):
print(var1 + " "+var2)
if __name__ == "__main__":
getValue(sys.argv[1], sys.argv[2])
# expect output : 테스트 성공적
print(sys.argv[0])
# expect output : read-python.py