Home
Iron Pythonで遊ぶ
Iron Python
Iron Python入門
WPF/XAMLを使おう
Information
私の本棚
Column
コラム
組み込み関数 raw_input
raw_input([prompt])
今まで散々使っていますraw_input関数の説明です。raw_input関数はキー入力を取得します。入力した文字列は文字列として返されます。引数はpromptとして表示されます。
#coding: shift-jis
a = raw_input('--> ')
print a
raw_input()
出力画面:
--> ABC ←'ABC'を入力する場合
ABC