都是使用type() 方法,但其實Python 有提供isinstance() 函式,此法是較好的作法,不僅執行速度較快,也適用於自己建立的Class 物件繼承(type() 不 ...
確定! 回上一頁