저장소
파이썬 scanf, scanner 본문
파이썬은 raw_input(), input()을 씀
import os
userinput = raw_input("how old are you? ")
print userinput, "data_type : ", type(userinput)
uinput = input("how tall are you? ")
print uinput, "data_type : ", type(uinput)
------------------------------------------
how old are you? 18
18 data_type : <type 'str'>
how tall are you? 170
170 data_type : <type 'int'>
------------------------------------------
raw_input()은 str,
input()은 int, float을 받음
Comments