定提示文字,使用者輸入的文字則以字串傳回(Python 2.7 的輸入是使用 raw_input() )。例如:. • hello.py name = input('請輸入你的名稱:') print('歡迎', name).
確定! 回上一頁