- 看漫画学Python:有趣、有料、好玩、好用(全彩版)
- 关东升
- 75字
- 2025-02-24 06:31:37
3.3 浮点类型
浮点类型主要用来存储小数数值,Python的浮点类型为float类。Python只支持双精度浮点类型,而且是与本机相关的。
动动手
我们在Python Shell中运行代码,看看运行结果怎样。


浮点类型主要用来存储小数数值,Python的浮点类型为float类。Python只支持双精度浮点类型,而且是与本机相关的。
动动手
我们在Python Shell中运行代码,看看运行结果怎样。