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
相关文章
相关标签/搜索