- The Python Workshop
- Andrew Bird Dr Lau Cher Han Mario Corchero Jiménez Graham Lee Corey Wade
- 134字
- 2021-06-11 12:51:29
Choosing Types
By now, you have learned about most of the common data structures in Python. One of the challenges you might face is knowing when to use the various data types.
When choosing a collection type, it is useful to understand the unique properties of that type. For example, a list is for you to store multiple objects and to retain a sequence, a dictionary is for us to store unique key-value pair mappings, tuples are immutable, and sets only store unique elements. Choosing the right type for a particular dataset could mean an increase in efficiency or security.
Choosing an incorrect type for your data will lead to data loss, in most cases it leads to low efficiency while running our code, and in the worst case, we might lose our data.
推薦閱讀
- Getting Started with Clickteam Fusion
- Ansible Quick Start Guide
- 大數據安全與隱私保護
- ESP8266 Home Automation Projects
- 電腦主板現場維修實錄
- OpenStack Cloud Computing Cookbook
- The Python Workshop
- PVCBOT機器人控制技術入門
- TensorFlow Reinforcement Learning Quick Start Guide
- Dreamweaver CS6中文版多功能教材
- 21天學通Linux嵌入式開發
- 簡明學中文版Flash動畫制作
- Cisco UCS Cookbook
- 工業控制系統安全
- C++面向對象程序設計