GyuhoLee

[ADD] Test nodejs file

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}\\test.js"
}
]
}
\ No newline at end of file
No preview for this file type
......@@ -5,7 +5,7 @@ import datetime
# coding = utf-8
filename = "C://area_code.xlsx" # area_code.xlsx
filename = "area_code.xlsx" # area_code.xlsx
book = openpyxl.load_workbook(filename)
sheet = book.worksheets[0]
......@@ -14,7 +14,8 @@ code = []
for cell in sheet['E']:
code.append(cell.value)
area = input("읍/면/동을 입력(띄어쓰기 없이 입력 - 예:영통3동)\n")
area = input()
print(area)
col = code.index(area)
area_code_index = 'B' + str(col+1)
area_code = sheet[area_code_index].value
......
const {PythonShell} = require('python-shell');
let iconv = require('iconv-lite');
let fs = require('fs');
var options = {
mode: 'text',
pythonOptions: ['-u'],
scriptPath: '',
args: ["영통1동"],
pythonPath: ''
};
var test = new PythonShell('recommend_clothes.py', options);
var data='"영통1동"';
test.send(data);
test.on('message',function(message){
console.log(message);
})
\ No newline at end of file
No preview for this file type