... 字串串在一起,如果我們想要的是數字相加,那我們需要先將字串轉換成數字,如下: int(s1) + int(s2) 使用int(s1)來將字串s1轉換成為int。當然int也可以使用str()來轉成字串 ...
確定! 回上一頁