在 Python 中,字串的前後必須以單引號或是雙引號夾起來,若開頭為單引號結尾就必須單引號, ... 將型態 str轉 int 只要使用 int()即可,如下: n = 10 s = '20' ans = n + ...
確定! 回上一頁