''' 使用type函数测试数据和变量的类型 ''' a = 1 print(type(1)) print(type(a)) b = 3.14 print(type(3.14)) print(type(b))
03-29
1655
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-10
1989
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-10
1251
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-12
3336
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)