본문 바로가기
Python

사용자 입력 받기 raw_input

by SpeeDr00t 2016. 7. 21.
반응형

사용자 입력 받기 raw_input

1.소스

input = raw_input("input :\n")
print "result = %s" % input

결과

hacker@ubuntu:~/python$ python input.py 
input :
black falcon
result = black falcon

반응형

'Python' 카테고리의 다른 글

python while 문  (0) 2016.07.21
if 문  (0) 2016.07.21
python hello world 찍기  (0) 2016.07.21
windows10 및 ubuntu 에서 setuptools 및 pip 설치  (0) 2016.07.14
vbs로 만든 shell code를 mfc로 자동 포팅 하기  (0) 2016.07.11