如果希望得到數值資料,必須再利用其他函式,例如int()、float(),把數字字串轉換成數值。 圖1 input()函式的執行流程. 我們來看一個範例:. name = input('請輸入 ...
確定! 回上一頁