Python 基礎(chǔ)教程
Python3.x 中 input() 函數(shù)接受一個標準輸入數(shù)據(jù),返回為 string 類型。
注意:在 Python3.x 中 raw_input() 和 input() 進行了整合,去除了 raw_input( ),僅保留了input( )函數(shù),其接收任意任性輸入,將所有輸入默認為字符串處理,并返回字符串類型。
input([prompt])
參數(shù)說明:
Python2.x input 與 raw_input() 說明
其他擴展