... input() 的預設是integer,但是在Python 3.xx 裡則是string,所以在上面的例子裡,a 和b 需要用int(input()) 把輸入的東西變成integer,而在Python 2.
確定! 回上一頁