- The Python Apprentice
- Robert Smallshire Austin Bingham
- 110字
- 2021-07-02 22:16:53
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
- bool — true/false boolean values
For now we'll just be looking at their basic details, showing their literal forms and how to create them.
推薦閱讀
- 高效微控制器C語言編程
- C# Programming Cookbook
- Mastering Spring MVC 4
- SEO智慧
- Effective Python Penetration Testing
- jQuery開發基礎教程
- Web Development with MongoDB and Node(Third Edition)
- Clojure Reactive Programming
- 輕松上手2D游戲開發:Unity入門
- HoloLens與混合現實開發
- Go語言入門經典
- 趣味掌控板編程
- SQL Server 2014數據庫設計與開發教程(微課版)
- Django 3 Web Development Cookbook
- Kotlin入門與實戰