強制轉型為int(整數)強制轉型為float(浮點數) ... Python-7-強制轉換型別 ... x = str("s1") #s1 y = str(2) #2 z = str(3.0) #3.0 print(x) print(y) ...
確定! 回上一頁