都是使用type() 方法,但其實Python 有提供isinstance() 函式,此法是較好的作法,不僅執行速度較 ... object : 此參數傳入指定的類別(Class) or 變數 ...
確定! 回上一頁