python之輸入函數

python2.x: raw_input() :將全部輸入看作字符串,返回字符串類型python >>>a = raw_input("input:") input:123 >>> type(a) <type 'str'> # 字符串 >>> a = raw_input("input:") input:runoob >>> type(a) <type 'str'>
相關文章
相關標籤/搜索