inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

173만명의 커뮤니티!! 함께 토론해봐요.

기초적인 질문

해결됨

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

print입력하고 괄호를 키보드로 누르면 print(value, sep=' ', end='n', file=sys.stdout, flush=False) 아래형태로 계속 입력이 되는데 어떻게 해야하나요?> ㅜ 계속 지우면서 사용중 입니다

  • python
최윤재 댓글 1 좋아요 0 조회수 178

실행결과..에서 질문이있습니다.

미해결

Node.js 교과서 - 기본부터 프로젝트 실습까지

const newObject = { sayhoho(){ console.log('hoho'); }, }; console.log( newObject.sayhoho() ); 이걸 실행시키면 결과가 hoho undefined ^이렇게 나옵니다. 왜 마지막에 undefined가 뜨는것인지 궁금합니다...

  • nodejs
  • javascript
  • mongodb
  • mysql
mm 댓글 1 좋아요 0 조회수 160

이렇게 하는건 어떤가요?

해결됨

정말 쉽게 풀어보는 코딩 테스트 top 기본 문제 (with 자바)

public static int[] plusOne(int[] digits) { StringBuilder sb = new StringBuilder(); for(int i=0;i<digits.length;i++) { sb.append(digits[i]+""); } int result = Integer.parseInt(sb.toString())+1; char[] ca = (result+"").toCharArray(); int[] res = new int[ca.length]; for(int i=0;i<ca.length;i++) { res[i] = Integer.parseInt(ca[i]+""); } return res; } 생각의 흐름대로 짜보았습니다.

  • java
  • 코테 준비 같이 해요!
크르릉 댓글 2 좋아요 1 조회수 326

tsconfig.json에 strict: true 설정 후

미해결

웹 게임을 만들며 배우는 TypeScript

html 파일에 미리 작업한 DOM Element에 script 작업을 하려 하는데 .ts 내에서 아래와 같이 DOM을 선택하면 let element = document.querySelector('element') 개체가 'null'인 것 같습니다. ts(2531) 에러를 뿜는데 해결방법이 있을까요?

  • javascript
  • typescript
KE 댓글 1 좋아요 0 조회수 417

팔로우, 팔로워 스크롤링 구현

미해결

Vue로 Nodebird SNS 만들기

lastId 형식으로 구현을 하려는데 follow 라는 db에는 createdAt, updatedAt, followingId, followerId 밖에 없습니다. belongToMany 에 id 를 추가하는 방법이 있나요? 아님 다른 방식으로 접근을 해야 하나요?

  • vuex
  • nodejs
  • vuejs
  • aws
  • mysql
  • ssr
꼬부기 댓글 2 좋아요 0 조회수 248

몇가지 질문 있습니다.

미해결

React로 NodeBird SNS 만들기

1.서버쪽에서 req.user는 프론트에서 요청한 정보를 받을때 사용하는 건가요? 서버쪽에서 프론트로 보낼땐 res.user로 하는거구용? 2. 이번 로그인전략을 글로 풀이하자면.. 프론트에서 id와 쿠키를 서버쪽으로 보내면(요청) 서버는 쿠키를 받아 검사후 프론트쪽에있는 쿠키 정보와 비교해서 id를 찾아내고 id를 통해서 user를 찾아내는데 이 과정에서 local.js와 passport->index,js 파일이 콜백함수로 왔다갔다 한다..로 이해했는데 맞나요? 3. local.js 에서 passport.use( new localStrategy( { usernameField: "userId", // req.body.userId passwordField: "password" // req.body.password }, usernameField: "userId" , passwordField: "password 은 프론트에서 요청온 정보 userId,password를 각각 usernameField: 와 passwordField: 에 담은건가요? async (userId, password, done) => { } 에서 사용하는거구요? usernameField: 와 passwordField: 변수명은 임의로 지어줄수있나요? 4.랑합니다.

  • javascript
  • react
반가우면반갑다고해 댓글 1 좋아요 0 조회수 224

format 사용 부분에서

미해결

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

format 사용 부분에서 print('%s %s' % ('one, 'two'))로 적었을때 출력이 되지 않고 에러가 떠요

  • python
JEUK WOO 댓글 1 좋아요 0 조회수 253

클래스 접근 방법의 구분 관련 질문입니다.

미해결

자바 : 클래스의 이해와 객체지향 프로그래밍

서로 다른 패키지의 두 클래스는 인스턴스 생성 시 사용하는 이름이 다르다가 아니라 달라야 한다 아닌가요? 감사합니다!

  • oop
  • java
Brad JongUk Park 댓글 1 좋아요 1 조회수 263

= vs. like

미해결

[백문이불여일타] 데이터 분석을 위한 기초 SQL

안녕하세요, = 와 like 에 대해서 질문드려요. 모음으로 끝나는 도시 이름을 찾는 Weather Observation Station 7의 문제를 예시로 들면, 이 때 WHERE city = '%a' 와 WHERE city LIKE '%a'는 어떤 차이점이 있나요? 강의에서 city = 'Germany'라고 예를 드신 걸 보고 문자열에서도 = 를 쓸 수 있는데, 왜 LIKE가 존재하는지 궁금해요.

  • sql
헤아 댓글 1 좋아요 2 조회수 232

print 실행시 아래 script가 뜨지 않습니다

미해결

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

print.. 여러번 입력했는데 script가 업데이트가 안되고 지금은 입력을 해도 script에 아무것도 뜨지 않는데 어떻게 해야하나요?

  • python
레몬 댓글 1 좋아요 0 조회수 174

데이터 분리와 교차 검증

해결됨

[개정판] 파이썬 머신러닝 완벽 가이드

안녕하세요? 교차 검증이 별도의 여러 세트로 구성된 학습 데이터 세트와 검증 데이터 세트에서 학습과 평가를 수행하는 것이라고 책에 표현해주셨는데 그렇다면 1) 학습 데이터와 테스트 데이터를 분리를 먼저 하고 2) 그리고 그 분리된 학습 데이터로 부터 다시 학습 데이터 세트와 검증 데이터 세트로 분리하는 것이 교차 검증이 맞는건가요?

  • 머신러닝 배워볼래요?
  • python
  • 통계
uoujjj 댓글 4 좋아요 0 조회수 352

가르쳐 주신 내용을 응용해서 작업 중 문의 드립니다.

미해결

퍼블리셔 취업을 위해 제대로 배워보는 html과 css, 그리고 웹표준

선생님 강의 잘 듣고 있습니다. 강의 내용과 올려주신 소스를 참고해서 화면을 구성하고 있는데 어려움이 있어서 문의 드립니다. 전체 화면을 구성해보는게 처음이라 이해가 안가는 부분이 많이 있습니다. 바쁘시겠지만 가능하시다면 설명 부탁드리겠습니다!!! 파일 첨부가 안돼서 작업한 내용을 css, html 로 구분해서 작성했습니다. *질문 1. #snb (좌측메뉴) 오른쪽에 border-right가 화면 끝까지 보여지도록 하려면 어떻게 하나요? 2. #content 하위의 h2의 경우 margin을 주려고 하니 시작점이 브라우저 끝인것 같습니다. #content에서 시작해야 할것 같은데 어디서 잘못한걸까요? 3. 2번과 비슷한데 #content 및 내부 DIV 들의 float, position을 문제 없이 적용한건지 알려주실 수 있나요? ----------------------------------CSS------------------------------------------------------ @charset "utf-8" ; @import url ( "https://fonts.googleapis.com/css?family=Noto+Sans" ); /* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 License: none (public domain) */ /*11-web폴더의 website.css를 참고하였습니다. 초기화 부분은 내용이 길어 제거하고 글 올립니다. */ /* reset */ body { font-family : "Noto Sans" , sans-serif ; font-size : 14px ; } .blind { display : block ; position : absolute ; left : 0 ; top : -9999em ; overflow : hidden ; } .skip a { position : absolute ; left : 0 ; top : -9999em ; z-index : 9999 ; display : block ; width : 100% ; background-color : navy ; color : #efefef ; text-decoration : none ; text-align : center ; line-height : 2 ; } .skip a:focus { top : 0 ; } .clearfix { * zoom : 1 ; } .clearfix:after { content : "" ; display : block ; clear : both ; } hr { display : none ; } /* style */ #wrap { margin : 0 auto ; } #header { position : fixed ; top : 0 ; z-index : 30 ; width : 100% ; background-color : #000 ; } #header .logo { float : left ; } #header .logo a { display : block ; padding : 0 20px ; background-color : #4d6c8b ; color : #fff ; font-size : 16px ; font-weight : bold ; text-decoration : none ; text-transform : uppercase ; line-height : 50px ; } #header .logo a:hover { background-color : #ccc ; color : #000 ; } #header .logo a i { margin-right : 10px ; } #header .nav { float : right ; } #header .btn_nav { width : 50px ; height : 50px ; border : 0 ; background-image : none ; background-color : #333 ; color : #eee ; font-size : 16px ; line-height : 50px ; cursor : pointer ; float : right ; } #header .btn_nav:hover { background-color : #ccc ; color : #000 ; } #header .userifo { display : block ; color : #eee ; font-size : 16px ; font-weight : bold ; text-decoration : none ; line-height : 50px ; float : left ; margin-right : 10px ; } #header .lnb { position : absolute ; top : 50px ; left : -100% ; width : 100% ; cursor : pointer ; } #header .lnb li a { display : block ; padding-left : 20px ; border-bottom : 1px solid #333 ; background-color : #222 ; color : #ccc ; font-size : 15px ; font-weight : bold ; line-height : 40px ; text-decoration : none ; text-transform : uppercase ; letter-spacing : 0.2em ; } #header .lnb li a:hover { background-color : #ddd ; color : #000 ; } #container { position : relative ; width : 100% ; top : 50px ; } #snb { float : left ; border-right : 1px solid #555 ; width : 200px ; min-height : 600px ; top : 10px ; } #snav li a { display : block ; padding-left : 20px ; border-bottom : 1px solid rgb ( 39 , 32 , 32 ); font-size : 15px ; color : white ; background-color : #333 ; line-height : 40px ; text-decoration : none ; text-transform : uppercase ; letter-spacing : 0.2em ; } #snav li .active { background-color : #06b3a1 ; color : white ; } #snav li a:hover:not ( .active ) { background-color : #06b3a1 ; color : white ; font-weight : bold ; } #content { position : relative ; } #content h2 { display : block ; margin-left : 20px ; line-height : 40px ; } #content .box-top { display : flex ; } #content .box1 { width : 50% ; height : 300px ; border : #555 2px solid ; } #content .box2 { width : 50% ; height : 300px ; border : #555 2px solid ; } #content .box-middle { display : flex ; } #content .box3 { width : 50% ; height : 300px ; border : #555 2px solid ; } #content .box4 { width : 50% ; height : 300px ; border : #555 2px solid ; } #content .box5 { width : 50% ; height : 300px ; border : #555 2px solid ; } #content h3 { display : block ; margin-left : 20px ; line-height : 30px ; } #content table { border : 1px solid #555 ; width : 100% ; } ----------------------------------HTML------------------------------------------------------ <! DOCTYPE html > < html lang = "en" > < head > < meta charset = "UTF-8" /> < meta name = "viewport" content = "width=device-width, initial-scale=1.0" /> < title > Home Page </ title > < link rel = "stylesheet" href = "css/fontawesome-all.min.css" /> < link rel = "stylesheet" href = "css/normalize.css" /> < link rel = "stylesheet" href = "css/website.css" /> </ head > < body > < div id = "wrap" > < div id = "header" class = "clearfix" > < h1 class = "logo" > < a href = "#" >< i class = "fas fa-home" ></ i > Logo </ a > </ h1 > < div class = "nav" class = "clearfix" > < h2 class = "userifo" > 홍길동 </ h2 > < button type = "button" class = "btn_nav" > < i class = "fas fa-bars" ></ i > < span class = "blind" > My menu </ span > </ button > < ul class = "lnb" > < li >< a href = "#" > 내정보 </ a ></ li > < li >< a href = "#" > 로그아웃 </ a ></ li > </ ul > </ div > </ div > < div id = "container" > < div id = "snb" > < ul id = "snav" class = "snb-nav" > < li >< a class = "active" href = "#" > 메뉴1 </ a ></ li > < li >< a href = "#" > 메뉴2 </ a ></ li > < li >< a href = "#" > 메뉴3 </ a ></ li > </ ul > </ div > < div id = "content" > < h2 > 타이틀1 </ h2 > < div class = "box-top clearfix" > < div class = "box1" > < h3 > 타이틀2 </ h3 > < table > < tr > < th > col 1 </ th > < th > col 2 </ th > < th > col 3 </ th > </ tr > < tbody > < tr > < td > 컬럼1...... </ td > < td > 컬럼2...... </ td > < td > 컬럼3...... </ td > </ tr > </ tbody > </ table > </ div > < div class = "box2" > BOX 2 </ div > </ div > < div class = "box-middle" > < div class = "box3" > BOX 3 </ div > < div class = "box4" > BOX 4 </ div > < div class = "box5" > BOX 5 </ div > </ div > </ div > </ div > </ div > </ body > </ html >

  • 웹 디자인
  • HTML/CSS
Sun.ahn 댓글 4 좋아요 1 조회수 277

Dto 클래스 만드실 때

미해결

실전! 스프링 부트와 JPA 활용2 - API 개발과 성능 최적화

선생님, DTO 클래스 만드실 때 private 타입으로 만들어도 되던데.. 왜 static으로 만드시는지 궁금해서 질문 드려요~

  • JPA
  • spring
  • java
  • spring-boot
세움.프로그래멍 댓글 1 좋아요 0 조회수 231

댓글창 나타내기

미해결

컴퓨터, 웹, 코딩, 프로그래밍의 시작 - Web1

We were unable to load Disqus. If you are a moderator please see our troubleshooting guide . 하단에 이 부분까지는 나오는데 172.0.0.1/index.html 로 바꿔도 댓글 창이 안뜨네요ㅠㅠ

  • HTML/CSS
김명경 댓글 1 좋아요 1 조회수 248

상속 관련 질문드립니다

미해결

생활코딩 - 자바스크립트(JavaScript) 기본

function Person (name) { this.name =name; } Person.prototype.name = null; &&&&&&&& 해당 부분이 왜 있는지를 모르겠습니다. Person.prototype.introduce =function () { return 'My name is ' + this.name; } function Programmer (name) { this.name = name; } Programmer.prototype = new Person(); var p1 = new Programmer('egoing'); document.write(p1.introduce() + "<br />") 위의 코드에서 &&& 라고 표시해 놓은 부분이 있어야 하는 이유가 무엇인 지 궁금합니다 해당 부분을 주석처리해봐도 값은 나오더라구요 Programmer를 먼저 실행시키고 그러면, name의 값이 egoing이 되는데, new Person을 통해 Programmer안에 Person의 name 과 introduce를 상속 받는 거 까지는 알겠습니다 근데 Person.name의 값으로 null을 줬는데, 이게 어떻게 다시 egoing이 될 수 있는 건지를 모르겠습니다 null값이 있는데 egoing값이 들어가서 name의 프로퍼티에 대한 값이 egoing이 되는건지,

  • javascript
devsn 댓글 0 좋아요 0 조회수 157

Admin 항목이 없습니다.

미해결

스프링 부트 개념과 활용

jconsole에서 실행한 Application으로 접속해서 MBeans에 org.springframework.boot를 들어가봤는데 Endpoint만 있고 Admin이 없네요...

  • java
  • spring
  • spring-boot
his700 댓글 4 좋아요 0 조회수 359

뷰에서 form 데이터 이동 경로에 관한 질문

미해결

Node.js 교과서 - 기본부터 프로젝트 실습까지

안녕하세요 제로초님, 강의 잘 보고 있습니다. 회원가입 강좌를 들으며 헷갈리는 부분이 있어서 질문을 남깁니다. php 에서는 폼의 action attribute 에 php 파일을 직접 넣어주어 그 해당 php 파일에서 form 데이터를 사용할수 있다고 배웠 습니다. (예- <form action = "helloWorld.php" method ="POST">). 이와같이 form 데이터를 서버로 넘길때, 만약 뷰에서 <form action = "auth/join" method = "POST" > 라고 되어있을때 form에 입력되어진 데이터가 auth.js 파일로 직접 전달 되어지는 건가요? 혹은 App.js 를 거쳐서 라우터 인덱트 파일을 거쳐 auth.js 까지 전달 되는건가요? 미리 감사 드립니다.

  • nodejs
  • mongodb
  • javascript
  • mysql
Caleb Hyun 댓글 2 좋아요 0 조회수 262

window 전역객체 문의드립니다

미해결

생활코딩 - 자바스크립트(JavaScript) 기본

function func() { alert('hello') } func(); // 해당 함수 선언은 정상적으로 작동합니다. 헌데, window.func();// 해당 함수 선언은 'window.func is not a function' 이라고 뜨는데, 이유를 잘 모르겠습니다. window는 전역객체이고 모든 객체의 부모이기 때문에, window.func()를 하면은 실행이 되어야 정상일 거 같은데 실제 결과는 그렇지가 않네요.. 도움 주시면 감사하겠습니다.

  • javascript
devsn 댓글 0 좋아요 0 조회수 152

인기 태그

인프런 TOP Writers

주간 인기글