묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결코테 출제자가 알려주는 [코딩 테스트 with 파이썬]
input.split(" ")와 input.split() 차이
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. list(map(int, input().split(" ")))input.split(" ")은 추가적인 공백문자를 포함해서 구분해주는걸로아는데input.split() 안쓰고 input.split(" ")을 쓰는 특별한 이유가 있는지 궁금합니다 다른데도 보면 같은코드에 input.split(), input.split(" ") 두개가 혼용되어 쓰이기도 하던데 큰 의미를 두고 구분해서 사용되지는 않죠? 그냥 input.split() 나 input.split(" ") 중 아무거나 사용되고있는 거죠?
-
미해결프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)
강의 자료 부탁드립니다.
강의자료 부탁드립니다.감사합니다.이메일 : jkim3733@gmail.com
-
미해결예제로 살펴보는 PyQt Tutorial
버튼이 눌려지면 새 창 띄우기
버튼이 눌렸을 때 새 창 띄우는것은 어떻게 하는건가요
-
미해결데이터 분석 SQL Fundamentals
쿼리 질문
--- 13. 상품별 매출합을 구하되, 상품 카테고리별 매출합의 5% 이상이고, 동일 카테고리에서 상위 3개 매출의 상품 정보 추출.-- 1. 상품별 + 상품 카테고리별 총 매출 계산. (상품별 + 상품 카테고리별 총 매출은 결국 상품별 총 매출임)-- 2. 상품 카테고리별 총 매출 계산 및 동일 카테고리에서 상품별 랭킹 구함-- 3. 상품 카테고리 매출의 5% 이상인 상품 매출과 매출 기준 top 3 상품 추출. with a as (select oi.product_id, sum(amount) sum_amt, category_idfrom order_items oi join products p ON oi.product_id = p.product_idgroup by category_id, oi.product_idorder by 1,3),b as (select category_id, product_id, sum_amt, sum(sum_amt) over(partition by category_id) sum_total,sum_amt/sum(sum_amt) over(partition by category_id) sum_ratio,row_number () over (partition by category_id order by product_id desc) rank_prd from a)select * from b where sum_ratio >= 0.05 and rank_prd <= 3order by 1,2,6 그런데 정답과 수치가 다르고 2위가 안나오기도 합니다.. 뭐가 잘못된 걸까요.. 아무리 봐도 쿼리상으로는 틀린 걸 찾을 수가 없어요
-
미해결데이터 분석 SQL Fundamentals
윈도우 함수
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.--- 13. 상품별 매출합을 구하되, 상품 카테고리별 매출합의 5% 이상이고, 동일 카테고리에서 상위 3개 매출의 상품 정보 추출.-- 1. 상품별 + 상품 카테고리별 총 매출 계산. (상품별 + 상품 카테고리별 총 매출은 결국 상품별 총 매출임) select category_id, oi.product_id, sum(amount) over (partition by category_id order by oi.product_id) sum_amtfrom order_items oi join products p on oi.product_id = p.product_id 이 구문은 왜 틀렸을까요?그리고 윈도우 함수에서 partition by와 order by의 차이를 잘 모르겠어요...
-
해결됨[리뉴얼] React로 NodeBird SNS 만들기
백엔드 서버에서 cookie 가 제대로 생성되었는지 확인할 수 있는 방법이 있을까요?
백엔드 서버에서 cookie 가 제대로 생성되었는지 확인할 수 있는 방법이 있을까요?
-
미해결Spring Cloud로 개발하는 마이크로서비스 애플리케이션(MSA)
안녕하세요 강사님 질문있습니다.
현재 스프링부트 버전맞추고 클라우드버전도 강사님과 똑같이 맞췄는데 유레카서버 띄우고 유저서비스 띄우면 유레카에서 발견되는데 그 이후에 유저서비스를 종료하면 유레카에서도 사라져야하지않나요?? 그런데 저는 계속 남아있습니다.. 새로 유저서비스를 실행하면 또 등록이 되고 있는 상태인데 어떻게 해결할 수 있을까요??
-
미해결스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
레이어 의존성 질문드립니다.
클래스 의존성이 아래와 같이 되어도 문제가 없는지 궁금해서 질문드립니다.AService에서 ARepo,BRepo를 주입받고, BService에서 ARepo,BRepo를 주입받는 상황AController에서 AService, A2Service를 주입받고, AService에서 A2Service를 주입받는 상황위 각각 두가지 상황이 설계상 괜찮은 부분일까요(단반향 의존성)?
-
해결됨[리뉴얼] React로 NodeBird SNS 만들기
deserializeUser 파라미터에 기존의 function 문을 사용하면 await 사용이 문법적으로 불가한가요?
deserializeUser 파라미터에 기존의 function 문을 사용하면 await 사용이 문법적으로 불가한가요?위에 서처럼 밑이 줄이 쳐지면서 vscode 에서 에러가 나오네요.
-
미해결코딩으로 학습하는 리팩토링
객체의 필드 몇개만 전달할 경우, 통째로 넘기기 vs 여러개로 넘기기
class Member {String id;String name;String addr;int age;} 위와 같은 클래스가 있고, 그중 절반정도의 필드를 매개변수로 넘겨야 할 경우,아래 2가지중 하나를 선택하는 고민을 매번 하게 됩니다.1) void check(id, name); 으로 할것인가2) void check(Member member); 로 할것인가 클래스의 모든 필드를 참조한다면 , 당연히 객체를 통째로 넘기면 되나, 절반 정도만 사용한다면 고민이 됩니다. 범용적일 필요가 없는 메서드라고 하더라도, 불필요한 값들을 객체를 통째로 넘기므로, 이 객체필드중 어떤걸 사용하지? 하면서 '구현'을 찾아봐야 하는 단점이 있어 보입니다.사용하는것만 무조건 넘겨야 한다면, 매개변수 갯수가 늘어나거나, 전용 dto를 만들어야 하니 불편하고,통째로 넘기는걸 반복하다 보면 의미없는 필드가 더 많은 객체를 매개변수로 넘기는 것과 다름없는 문제가 있어보입니다.절충점을 어떻게 찾아야 할까요?
-
미해결피그마(Figma)를 활용한 UI디자인 입문부터 실전까지 A to Z
업무시 가장 시간이 가장많이 소요되는 부분은 어떤건가요?
스케치, 와이어프레임, 유저 플로우, UI디자인 등등.....
-
미해결피그마(Figma)를 활용한 UI디자인 입문부터 실전까지 A to Z
제플린 이해가 안가서요.
제플린에서 아이콘이나 버튼 이미지 등등 하나하나 이미지를 다 다운받아서 주는 개념인가요?즉 예전에 홈페이지 만들때 개발자한테 디자이너들이 이미지 잘라서 주듯이요.
-
미해결풀스택 리액트 토이프로젝트 - REST, GraphQL (for FE개발자)
[소스 다운로드 안됩니다]
안녕하십니까목록뷰 구현하기에서 Invalid Date 오류가 나서 소스 파일을 참조 하려고 파일을 다운로드 받아보니 안에 소스 파일이 없습니다.https://github.com/roy-jung/api-practiceapi-practice-main.zip [아래 코드는 강의에서 따라 한 것입니다. 아무래도 오류가 없는데.. Invalid Date 오류가 발생합니다]const MsgItem = ({ userId, tiemestamp, text }) => ( <li className="messages__item"> <h3> {userId}{" "} <sub> {new Date(tiemestamp).toLocaleString('ko-KR', { year: 'numeric', month: 'numeric', day: 'numeric', hour: '2-digit', minute: '2-digit', hour12: true, })} </sub> </h3> {text} </li> );
-
해결됨스프링 핵심 원리 - 기본편
isEqualTo 동작과정이 궁금합니다!
1.isEqualTo 동작과정이 궁금합니다!isEqualTo 양변이 Integer로 오토박싱이 일어난 후 Integerclass에 정의된 equals가 호출되면서 동등성 비교가 일어나는 건가요?2.isEqualTo vs isSameTo 가 헷갈립니다isSameTo는 동일성(객체주소) 비교고좌변 isEqualtTo는 좌변의 equals가 재정의가 되어 있지 않으면 동일성(객체주소)비교이고 재정의 되면 동등성(값비교)or재정의된 equals로 비교가 되는 걸로 정리하면 될까요?
-
미해결Vue.js 완벽 가이드 - 실습과 리팩토링으로 배우는 실전 개념
git 권한 요청 드립니다.
인프런 아이디 : jabpal07@naver.com인프런 이메일 : jabpal07@naver.com깃헙 아이디 : ldabinn@gmail.com깃헙 Username : dabin-lee
-
미해결[리뉴얼] 타입스크립트 올인원 : Part1. 기본 문법편
오버로딩 예제이지만, 저게 반공변성에 해당되는 건지 궁금합니다.
interface Add { (x: number, y: number): number; (x: string, y: string): string; } 이것도 넓은 타입의 파라미터를 좁은 타입의 파라미터에 넣은 것으로 보고 반공변성에 해당한다고 볼 수 있나요? const add: Add = (x: any, y: any) => x + y;
-
해결됨[코드캠프] 시작은 프리캠프
div 상자 안에 div가 안들어가져요
html<!DOCTYPE html> <html lang="kr"> <head> <title>Document</title> <link rel="stylesheet" href="../cyworld/styles/jukebox.css"> </head> <body> <div class="Bigframe"> <div class="pic"> <div class="pic_title"> <duv class="main_title">추억의 BGM</div> <div class="sub_title">TODAY CHOICE</div> </div> <div class="Line"></div> <div class="pics"> <div class="pic1"> <img src="./images/y사진.png" class="album_pic"> <div class="song_title">Y(Please Tell Me Why)</div> <div class="artist">프리스타일</div> </div> <div class="pic1"> <img src="./images/snow.png" class="album_pic"> <div class="song_title">눈의 꽃</div> <div class="artist">박효신</div> </div> <div class="pic1"> <img src="./images/love.png" class="album_pic"> <div class="song_title">사랑했나봐</div> <div class="artist">윤도현</div> </div> </div> </div> <div class="list"> <div class="pic_title"> <duv class="main_title">추억의 BGM</div> <div class="sub_title">TODAY CHOICE</div> </div> <table class="music_list"> <tr> <th class="checkbox"><input type="checkbox"></th> <th class="number">번호</th> <th class="song">곡명</th> <th class="artist">아티스트</th> </tr> <tr> <td class="checkbox1"><input type="checkbox"></td> <td class="number1">1</td> <td class="song1">눈의 꽃</td> <td class="artist1">박효신</td> </tr> <tr> <td class="checkbox1"><input type="checkbox"></td> <td class="number1">2</td> <td class="song1">사랑스러워</td> <td class="artist1">김종국</td> </tr> <tr> <td class="checkbox1"><input type="checkbox"></td> <td class="number1">3</td> <td class="song1">내사람:Partner For Life</td> <td class="artist1">SG워너비</td> </tr> <tr> <td class="checkbox1"><input type="checkbox"></td> <td class="number1">4</td> <td class="song1">Love Love Love</td> <td class="artist1">에픽하이</td> </tr> <tr> <td class="checkbox1"><input type="checkbox"></td> <td class="number1">5</td> <td class="song1">애인...있어요</td> <td class="artist1">이은미</td> </tr> </table> </div> </div> </body> </html>css*{ box-sizing: border-box; margin: 0px; padding: 0px; } body,html{ width:100%; height: 100%; } .Bigframe{ display: flex; flex-direction: column; width: 100%; padding: 20px 30px; justify-content: space-between; align-items: center; } .pic{ width: 100%; } .pic_title{ width: 100%; display: flex; flex-direction: row; } .main_title{ color: #55B2E4; font-size: 13px; font-weight: 700; } .sub_title{ font-size: 8px; padding-left: 5px; display: flex; flex-direction: column; justify-content: flex-end; } .Line{ width: 100%; border-top: 1px solid gray; } .pics{ display: flex; flex-direction: row; justify-content: space-around; padding-top: 12px; } .album_pic{ width: 120px; height: 120px; padding: 5px; } .song_title{ font-family: 'Malgun Gothic'; font-weight: bold; font-size: 11px; color: #0F465E; display: flex; flex-direction: row; justify-content: center; } .artist{ font-family: 'Malgun Gothic'; font-weight: 700; font-size: 10px; display: flex; flex-direction: row; font-weight: bold; justify-content: center; } .list{ width: 100%; } .music_list{ width: 100%; padding-top: 8px; border-spacing: 0px; } .music_list th{ height: 20px; font-size: 10px; font-weight: bold; color: gray; background-color: #eeeeee; border-top: 1px solid gray; border-bottom: 1px dashed gray; } .music_list td{ height: 20px; font-size: 10px; color: #0f465e; border-bottom: 1px dashed gray; } .checkbox1{ width:5%; text-align: center; } .number1{ width:10%; text-align: center; } .song1{ width:45%; text-align: left; } .artist1{ width:30%; text-align: center; } 실행 시Bigframe(wrapper)안에 두 상자가 다 안담아져요어디가 문제 일까요..?ㅠㅠ
-
미해결따라하며 배우는 도커와 CI환경 [2023.11 업데이트]
dokcer Volume 를 이용한 빌드 이용시 컨테이너 2개
궁금한게 볼륨을 사용하여 빌드를 하면 반영을 도커 컨테이너가 로컬을 바라보고 변경사항이 사소할경우 빠르게 빌드가 진행된다고 이해를 하고 있습니다. 여기서 궁금한점은 볼륨을 활용하여 다시 빌드를 하여도 컨테이너가 2개가 어차피 생기는데 맞을까요>
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진
강의소스 다운로드요..
밑에 강의소스 다른 문의글을 봤는데저는 중간중간에 구름모양이 안보이는데어떻게 받을수 있을까요?
-
해결됨[코드캠프] 훈훈한 Javascript
섹션 7 추가 문제에 대한 답안은 없나요??
advanced 문제 답안 보고 싶은데 없어서 질문드립니다🥲