강의

멘토링

커뮤니티

Inflearn Community Q&A

holypraise832651's profile image
holypraise832651

asked

Introduction to Python Algorithm Problem Solving (Coding Test Preparation)

4. Choosing a stable (decision algorithm)

atom, jupyter 노트북에서 input 활용법 문의

Written on

·

184

0

안녕하세요. 선생님 강의 잘 듣고 있습니다.

제가 pycharm 에서 코딩을 할때는 문제가 없었는데

아톰이나 쥬피터에서 한줄 한줄 실행할때 문제가 생겨 질문 드립니다. 아래 코드를 아톰에서 실행하면(shift+enter) input 의 첫번째 줄을 가져오지 않고 input  커맨드 창이 뜹니다. 쥬피터도 마찬가지이구요. 혹시 아톰에서 한줄 한줄 실행할때 input 데이터값을 읽으면서 진행하는 방향이 있을까요?

import sys
sys.stdin = open('input.txt', 'r')

n, m = map(int, input().split())
python코테 준비 같이 해요!

Answer 1

0

codingcamp님의 프로필 이미지
codingcamp
Instructor

안녕하세요^^

제가 아톰이나 쥬피터를 사용해본적이 없어서...ㅠㅠ 죄송합니다.

혹시 아톰이나 쥬피터 사용하시는 분 있으시면 답변해주시면 감사하겠습니다.

holypraise832651's profile image
holypraise832651

asked

Ask a question