Python 常見的資料型別有整數(integer)、浮點數(floating-point number)、 ... for +: 'int' and 'str' >>> 1 + int('2') # 使用int()將字串轉成整數 3.
確定! 回上一頁