官术网_书友最值得收藏!

Scalar data types: integers, floats, None and bool

Python comes with a number of built-in datatypes. These include primitive scalar types like integers as well as collection types like dictionaries. These built-in types are powerful enough to be used alone for many programming needs, and they can be used as building blocks for creating more complex data types.

The basic built-in scalar types we'll look at are:

  • int — signed, unlimited precision integers
  • float — IEEE 754 floating-point numbers
  • None — a special, singular null value
  • booltrue/false boolean values

For now we'll just be looking at their basic details, showing their literal forms and how to create them.

主站蜘蛛池模板: 宜昌市| 阿拉善盟| 邢台市| 宿州市| 栾城县| 江源县| 新郑市| 凯里市| 八宿县| 盐津县| 繁昌县| 北海市| 大竹县| 荥经县| 额济纳旗| 锡林郭勒盟| 宜川县| 葫芦岛市| 北票市| 永康市| 嘉兴市| 会泽县| 汝州市| 荣昌县| 广丰县| 孟津县| 湟中县| 马山县| 连城县| 镶黄旗| 罗城| 山阳县| 德阳市| 钦州市| 博爱县| 阳谷县| 青海省| 年辖:市辖区| 彭州市| 响水县| 兴文县|