Python判斷類型

Python判斷類型,基本類型主要使用type() ,  對象類型使用  instance() print( type(123)) print( type(123) == int) print( type("hello")) print( type("hello") == str) print( type(1.234)) print( type(1.234) == float) print( ty
相關文章
相關標籤/搜索