type函數查看變量類型

python3 >>> name = "xiaoming" >>> type(name) <class 'str'> >>> age = 18 >>> type(age) <class 'int'> >>> gender = True >>> type(gender) <class 'bool'> >>> height = 1.75 >>> type(height) <cl
相關文章
相關標籤/搜索