GyuhoLee

[Update] Connect to port

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>OSW</title>
<link rel="stylesheet" href="/css/style.css" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Jua&display=swap" rel="stylesheet">
</head>
<body>
helloworld
<script src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script>
</body>
</html>
\ No newline at end of file
......@@ -14,6 +14,9 @@ code = []
for cell in sheet['E']:
code.append(cell.value)
sys.stdin.reconfigure(encoding='utf-8')
sys.stdout.reconfigure(encoding='utf-8')
area = input()
print(area)
col = code.index(area)
......
var http = require('http');
var fs = require('fs');
var app = http.createServer(function(request,response){
var url = request.url;
if(request.url == '/'){
url = '/index.html';
}
if(request.url == '/favicon.ico'){
response.writeHead(404);
response.end();
return;
}
response.writeHead(200);
response.end(fs.readFileSync(__dirname + url));
});
app.listen(3000);
const {PythonShell} = require('python-shell');
let iconv = require('iconv-lite');
let fs = require('fs');
var options = {
mode: 'text',
pythonOptions: ['-u'],
scriptPath: '',
args: ["영통1동"],
pythonPath: ''
encoding: 'utf8',
args: ["영통1동"]
};
var arr;
var test = new PythonShell('recommend_clothes.py', options);
var data='"영통1동"';
var data='영통1동';
test.send(data);
test.on('message',function(message){
console.log(message);
})
\ No newline at end of file
arr = message.split(' ');
})
......