由輸出結果可知,透過 isinstance() 函式對word 變數做型別檢查是否為 string ,回傳結果為 True 表類型相符。 isinstance() 函式亦能對其他Pyhton 內建的 ...
確定! 回上一頁