Python/Python 어렵게 배우기
Python 어렵게 배우기 - Exercise 12: Prompting People
purepleya
2013. 11. 28. 21:30
원문 : http://learnpythonthehardway.org/book/ex12.html
raw_input을 조금 다르게 사용해 보자 (ex12.py)
age = raw_input("How old are you? ") height = raw_input("How tall are you? ") weight = raw_input("How much do you weigh? ") print "So, you're %r old, %r tall and %r heavy." % (age, height, weight)
결과
알 수 있는 내용...
1. raw_input("입력 받을때 표시 할 내용") <- 이렇게 사용 가능하다.
반응형